generated from SGDA/GodotExampleProject
ci: updated for new itch project
This commit is contained in:
@ -8,10 +8,9 @@ on:
|
||||
- "**"
|
||||
|
||||
env:
|
||||
GAME_NAME: GodotExampleProject
|
||||
GAME_NAME: EGJ25
|
||||
ITCHIO_USERNAME: Minimata
|
||||
ITCHIO_GAMEID: CICDTestProject
|
||||
|
||||
ITCHIO_GAMEID: EGJ25
|
||||
|
||||
jobs:
|
||||
BumpTag:
|
||||
@ -25,12 +24,11 @@ jobs:
|
||||
lfs: false
|
||||
- name: Remove buggy pre-push hook
|
||||
run: |
|
||||
rm -f .git/hooks/pre-push
|
||||
rm -f .git/hooks/pre-push
|
||||
- name: Bump version and push tag
|
||||
id: bump-tag
|
||||
uses: anothrNick/github-tag-action@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||
GIT_API_TAGGING: false
|
||||
WITH_V: true
|
||||
PRERELEASE: false
|
||||
@ -41,19 +39,19 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: BumpTag
|
||||
container:
|
||||
image: barichello/godot-ci:mono-4.4.1
|
||||
image: barichello/godot-ci:4.4.1
|
||||
|
||||
steps:
|
||||
- name: Install node, curl and zip
|
||||
run: |
|
||||
apt update && apt -y install curl zip nodejs
|
||||
apt update && apt -y install curl zip nodejs
|
||||
- name: Checkout with LFS
|
||||
uses: https://git.game-dev.space/minimata/checkout-lfs.git@main
|
||||
uses: https://git.game-dev.space/minimata/checkout-with-lfs.git@main
|
||||
with:
|
||||
checkout-version: 3
|
||||
- name: Import resources and build solution
|
||||
run: |
|
||||
godot --headless --editor --build-solutions --quit --import --path $PWD
|
||||
godot --headless --editor --build-solutions --quit --import --path $PWD
|
||||
- name: Build Windows
|
||||
run: |
|
||||
mkdir -v -p build/windows
|
||||
@ -69,12 +67,11 @@ jobs:
|
||||
mkdir -v -p build/mac
|
||||
godot --headless --verbose --export-release "macOS" build/mac/${{ env.GAME_NAME }}.zip
|
||||
zip -r Mac.zip build/mac
|
||||
|
||||
- name: Upload Windows build
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: WindowsBuild
|
||||
path: Windows.zip
|
||||
- name: Web Build
|
||||
run: |
|
||||
mkdir -v -p build/web
|
||||
godot --headless --verbose --export-release "Web" build/web/index.html
|
||||
|
||||
- name: Upload to Itch
|
||||
uses: KikimoraGames/itch-publish@v0.0.3
|
||||
with:
|
||||
@ -85,11 +82,6 @@ jobs:
|
||||
gameData: Windows.zip
|
||||
buildChannel: windows
|
||||
|
||||
- name: Upload Linux build
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: LinuxBuild
|
||||
path: Linux.zip
|
||||
- name: Upload to Itch
|
||||
uses: KikimoraGames/itch-publish@v0.0.3
|
||||
with:
|
||||
@ -98,13 +90,8 @@ jobs:
|
||||
itchGameId: ${{ env.ITCHIO_GAMEID }}
|
||||
buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
||||
gameData: Linux.zip
|
||||
buildChannel: linux
|
||||
|
||||
- name: Upload Mac build
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: MacBuild
|
||||
path: Mac.zip
|
||||
buildChannel: linux
|
||||
|
||||
- name: Upload to Itch
|
||||
uses: KikimoraGames/itch-publish@v0.0.3
|
||||
with:
|
||||
@ -114,3 +101,13 @@ jobs:
|
||||
buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
||||
gameData: Mac.zip
|
||||
buildChannel: mac
|
||||
|
||||
- name: Upload to Itch
|
||||
uses: KikimoraGames/itch-publish@v0.0.3
|
||||
with:
|
||||
butlerApiKey: ${{ secrets.BUTLER_TOKEN }}
|
||||
itchUsername: ${{ env.ITCHIO_USERNAME }}
|
||||
itchGameId: ${{ env.ITCHIO_GAMEID }}
|
||||
buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
||||
gameData: build/web
|
||||
buildChannel: web
|
Reference in New Issue
Block a user