Skip to content

Commit

Permalink
zip project in ci and push to release with build
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Apr 15, 2024
1 parent abf4d6f commit 2df6001
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
- name: Install AGS
run: |
atbx install editor -q fancy_demo/
- name: Build game
run: |
atbx build fancy_demo/
- name: Export module
run: |
atbx export script fancy_demo/ fancy .
Expand All @@ -32,10 +32,28 @@ jobs:
name: fancy_demo
path: |
fancy_demo/Compiled/*/*
- name: Zip Game Project
run: |
Remove-Item -Recurse -Force fancy_demo/Compiled/Data
Remove-Item -Recurse -Force fancy_demo/_Debug
Remove-Item -Force fancy_demo/Game.agf.bak
Remove-Item -Force fancy_demo/Game.agf.user
Remove-Item -Force fancy_demo/backup_acsprset.spr
Compress-Archive -Path fancy_demo/* -Destination fancy_demo_windows.zip
- name: Upload Module Artifact
uses: actions/upload-artifact@v4
with:
name: fancy_module
path: |
fancy.scm
fancy.scm
- name: Create release and upload assets
if: startsWith(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
artifacts: fancy.scm,fancy_demo_windows.zip
allowUpdates: true
omitBodyDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2df6001

Please sign in to comment.