Skip to content

Commit

Permalink
Update to godot 4
Browse files Browse the repository at this point in the history
  • Loading branch information
myin142 committed Jun 13, 2023
1 parent 6155dd9 commit f4a723a
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,23 @@ jobs:
release:
runs-on: ubuntu-latest
container:
image: barichello/godot-ci:3.4.4
image: barichello/godot-ci:4.0.3
strategy:
matrix:
# Remove channel if not releasing (Available: win, linux, mac, web, android)
channel: [win, linux]
env:
GAME: ##VAR_GAME_NAME
CHANNEL: ${{matrix.channel}}
GODOT_VERSION: 3.4.4
GODOT_VERSION: 4.0.3
steps:
- uses: actions/checkout@v3
with:
lfs: true
submodules: true

- name: Setup Templates
run: ./scripts/ci/prepare-templates.sh
#- name: Setup Templates
# run: ./scripts/ci/prepare-templates.sh

- name: Prepare android release
env:
Expand All @@ -47,7 +48,7 @@ jobs:
run: ./addons/debug/prepare-build.sh $GITHUB_REF_NAME

- name: Build
run: ./scripts/ci/build-channel.sh $CHANNEL
run: ./scripts/build-channel.sh $CHANNEL

- name: Publish Itch
if: env.BUTLER_API_KEY && env.USER && env.GAME && !contains(github.ref, '-rc')
Expand All @@ -65,21 +66,13 @@ jobs:
cd build
mv $CHANNEL $GAME && zip -r $GAME-$CHANNEL.zip $GAME
# Upload exported build
- name: Upload artifacts
if: env.CHANNEL != 'android'
uses: actions/upload-artifact@v3
with:
name: release
path: build/**/*.zip

- name: Upload android
if: env.CHANNEL == 'android'
uses: actions/upload-artifact@v3
with:
name: release
path: build/**/*.aab
path: build/**/*.[za][ia][pb] # zip | aab

# Run after every channel finished
github-release:
runs-on: ubuntu-latest
needs: release
Expand Down

0 comments on commit f4a723a

Please sign in to comment.