Skip to content

Commit

Permalink
Persist distributions between build and upload jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
nonk123 committed May 28, 2024
1 parent af01f76 commit 3d69fc7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build-native.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
config:
- {
name: linux-gnu,
fancy_name: Linux (GCC),
exe: CodenamePedestrian,
out: CodenamePedestrian,
os: ubuntu-latest,
Expand All @@ -24,7 +23,6 @@ jobs:
}
- {
name: windows-msvc,
fancy_name: Windows (MSVC),
exe: Debug/CodenamePedestrian.exe,
out: CodenamePedestrian.exe,
os: windows-latest,
Expand All @@ -51,9 +49,9 @@ jobs:
- name: Tar the distribution
run: tar -cvf ${{matrix.config.name}}.tar dist-${{matrix.config.name}}
- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{matrix.config.fancy_name}}
name: ${{matrix.config.name}}
path: ${{matrix.config.name}}.tar
upload:
name: Upload channel ${{matrix.distribution}} to itch.io
Expand All @@ -63,6 +61,13 @@ jobs:
matrix:
distribution: [linux-gnu, windows-msvc]
steps:
- name: Download the distribution
uses: actions/download-artifact@v4
with:
name: ${{matrix.distribution}}
- name: Unpack the distribution
run: |
tar -xf ${{matrix.distribution}}.tar
- name: Upload to itch.io
uses: manleydev/butler-publish-itchio-action@master
env:
Expand Down

0 comments on commit 3d69fc7

Please sign in to comment.