more ci fixes #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build-and-test-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: gets ags-toolbox | |
run: | | |
curl -Lo atbx.exe https://github.com/ericoporto/agstoolbox/releases/download/0.4.9/atbx.exe | |
echo "${{github.workspace}}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
- 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 . | |
- name: Upload Game Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: fancy_demo | |
path: | | |
fancy_demo/Compiled/*/* | |
- name: Zip Game Project | |
run: | | |
Remove-Item -Recurse -Force fancy_demo/Compiled/Data | |
Remove-Item -Force fancy_demo/Game.agf.user | |
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 | |
- 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 }} |