Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push released SimpleGraphic artifacts to PoB repos #69

Merged
merged 9 commits into from
Jan 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build DLL
on: push
on:
push:
pull_request:
release:
types: [published]
jobs:
build_dll:
strategy:
Expand All @@ -15,6 +19,7 @@ jobs:
VCPKG_INSTALLED_DIR: ${{ github.workspace }}/vcpkg_installed/
DEPS_DIR: ${{ github.workspace }}/vcpkg_installed/${{ matrix.triplet }}
INST_DIR: ${{ github.workspace }}/install-prefix
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -69,3 +74,28 @@ jobs:
${{ env.DEPS_DIR }}/bin/*.pdb
${{ github.workspace }}/build/Release/lzip.pdb
${{ github.workspace }}/build/Release/lcurl.pdb

- name: Upload to release
if: ${{ github.event_name == 'release' }}
run: |
cd ${{ env.INST_DIR }}
tar -cvf SimpleGraphicDLLs-${{ matrix.triplet }}.tar *.dll
gh release upload ${{ github.event.release.tag_name }} SimpleGraphicDLLs-${{ matrix.triplet }}.tar

- name: Notify PathOfBuilding repo
if: ${{ github.event_name == 'release' }}
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.WIRES77_PAT }}
repository: ${{ github.repository_owner }}/PathOfBuilding
event-type: update-simple-graphic
client-payload: '{"tag": "${{ github.event.release.tag_name }}", "release_link": "${{ github.event.release.html_url }}"}'

- name: Notify PathOfBuilding-PoE2 repo
if: ${{ github.event_name == 'release' }}
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.WIRES77_PAT }}
repository: ${{ github.repository_owner }}/PathOfBuilding-PoE2
event-type: update-simple-graphic
client-payload: '{"tag": "${{ github.event.release.tag_name }}", "release_link": "${{ github.event.release.html_url }}"}'