|
1 | 1 | name: Build DLL
|
2 |
| -on: push |
| 2 | +on: |
| 3 | + push: |
| 4 | + pull_request: |
| 5 | + release: |
| 6 | + types: [published] |
3 | 7 | jobs:
|
4 | 8 | build_dll:
|
5 | 9 | strategy:
|
|
15 | 19 | VCPKG_INSTALLED_DIR: ${{ github.workspace }}/vcpkg_installed/
|
16 | 20 | DEPS_DIR: ${{ github.workspace }}/vcpkg_installed/${{ matrix.triplet }}
|
17 | 21 | INST_DIR: ${{ github.workspace }}/install-prefix
|
| 22 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
18 | 23 | steps:
|
19 | 24 | - name: Checkout
|
20 | 25 | uses: actions/checkout@v4
|
|
69 | 74 | ${{ env.DEPS_DIR }}/bin/*.pdb
|
70 | 75 | ${{ github.workspace }}/build/Release/lzip.pdb
|
71 | 76 | ${{ github.workspace }}/build/Release/lcurl.pdb
|
| 77 | +
|
| 78 | + - name: Upload to release |
| 79 | + if: ${{ github.event_name == 'release' }} |
| 80 | + run: | |
| 81 | + cd ${{ env.INST_DIR }} |
| 82 | + tar -cvf SimpleGraphicDLLs-${{ matrix.triplet }}.tar *.dll |
| 83 | + gh release upload ${{ github.event.release.tag_name }} SimpleGraphicDLLs-${{ matrix.triplet }}.tar |
| 84 | +
|
| 85 | + - name: Notify PathOfBuilding repo |
| 86 | + if: ${{ github.event_name == 'release' }} |
| 87 | + uses: peter-evans/repository-dispatch@v3 |
| 88 | + with: |
| 89 | + token: ${{ secrets.WIRES77_PAT }} |
| 90 | + repository: ${{ github.repository_owner }}/PathOfBuilding |
| 91 | + event-type: update-simple-graphic |
| 92 | + client-payload: '{"tag": "${{ github.event.release.tag_name }}", "release_link": "${{ github.event.release.html_url }}"}' |
| 93 | + |
| 94 | + - name: Notify PathOfBuilding-PoE2 repo |
| 95 | + if: ${{ github.event_name == 'release' }} |
| 96 | + uses: peter-evans/repository-dispatch@v3 |
| 97 | + with: |
| 98 | + token: ${{ secrets.WIRES77_PAT }} |
| 99 | + repository: ${{ github.repository_owner }}/PathOfBuilding-PoE2 |
| 100 | + event-type: update-simple-graphic |
| 101 | + client-payload: '{"tag": "${{ github.event.release.tag_name }}", "release_link": "${{ github.event.release.html_url }}"}' |
0 commit comments