Skip to content

Commit

Permalink
build: add auto PR build step
Browse files Browse the repository at this point in the history
  • Loading branch information
zhudotexe committed Aug 23, 2022
1 parent 8c08b5a commit aa1de59
Showing 1 changed file with 39 additions and 7 deletions.
46 changes: 39 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive

- name: Setup MSBuild
uses: microsoft/[email protected]
Expand Down Expand Up @@ -48,11 +46,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Download artifact
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -83,3 +76,42 @@ jobs:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: zhudotexe/FFXIV_DalamudPlugins
event-type: new-release

release-dalamudofficial:
# on release publish only
if: github.event_name == 'release'
needs: build
runs-on: ubuntu-latest

steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: ReleaseZip
path: out

- name: Checkout DalamudPlugins
uses: actions/checkout@v3
with:
repository: 'goatcorp/DalamudPlugins'
path: DalamudPlugins

- name: Copy dist files
run: |
cp out/latest.zip DalamudPlugins/autoSweep/latest.zip
cp out/autoSweep.json DalamudPlugins/autoSweep/autoSweep.json
cp -r out/images DalamudPlugins/autoSweep/images
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
path: DalamudPlugins
commit-message: update PaissaHouse to ${{ github.event.release.tag_name }}
delete-branch: true
push-to-fork: zhudotexe/DalamudPlugins
title: Update PaissaHouse to ${{ github.event.release.name }}
body: |
${{ github.event.release.body }}
*This PR was automatically generated by the PaissaHouse build system ([link to run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})).*

0 comments on commit aa1de59

Please sign in to comment.