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