Skip to content

Commit cdbbf02

Browse files
authored
Merge pull request #16 from TECHNICANGEL/feature/ci-release-per-commit-14580101512468622031
Enable automatic release and packaging per commit
2 parents fbeb25b + 74a5f3a commit cdbbf02

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,23 @@ jobs:
6969
build/Release/RacingEngine.exe
7070
shaders/compiled/*.spv
7171
retention-days: 30
72+
73+
- name: Prepare Package
74+
if: github.event_name == 'push'
75+
run: |
76+
mkdir dist
77+
copy build/Release/RacingEngine.exe dist/
78+
mkdir dist/shaders/compiled
79+
copy shaders/compiled/*.spv dist/shaders/compiled/
80+
Compress-Archive -Path dist/* -DestinationPath RacingEngine-Windows-${{ github.sha }}.zip
81+
shell: pwsh
82+
83+
- name: Create Release
84+
if: github.event_name == 'push'
85+
uses: ncipollo/release-action@v1
86+
with:
87+
tag: commit-${{ github.sha }}
88+
name: Release ${{ github.sha }}
89+
body: Auto-generated release for commit ${{ github.sha }}
90+
artifacts: RacingEngine-Windows-${{ github.sha }}.zip
91+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)