Skip to content

Commit 1443976

Browse files
authored
Push released SimpleGraphic artifacts to PoB repos (#69)
* Testing SG upload workflow * Add token * Fix release ifs * Fix repo owner * Fix directories in tarfile * Fix directories in tarfile * Save artifacts for PR testing
1 parent a1cd16c commit 1443976

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

.github/workflows/main.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Build DLL
2-
on: push
2+
on:
3+
push:
4+
pull_request:
5+
release:
6+
types: [published]
37
jobs:
48
build_dll:
59
strategy:
@@ -15,6 +19,7 @@ jobs:
1519
VCPKG_INSTALLED_DIR: ${{ github.workspace }}/vcpkg_installed/
1620
DEPS_DIR: ${{ github.workspace }}/vcpkg_installed/${{ matrix.triplet }}
1721
INST_DIR: ${{ github.workspace }}/install-prefix
22+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1823
steps:
1924
- name: Checkout
2025
uses: actions/checkout@v4
@@ -69,3 +74,28 @@ jobs:
6974
${{ env.DEPS_DIR }}/bin/*.pdb
7075
${{ github.workspace }}/build/Release/lzip.pdb
7176
${{ 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

Comments
 (0)