diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f63a9f..8e0fad0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,8 +16,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - with: - submodules: recursive - name: Setup MSBuild uses: microsoft/setup-msbuild@v1.0.3 @@ -48,11 +46,6 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout repo - uses: actions/checkout@v2.2.0 - with: - fetch-depth: 0 - - name: Download artifact uses: actions/download-artifact@v2 with: @@ -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 }})).*