Skip to content

Commit

Permalink
ci: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
florianvazelle committed Sep 9, 2023
1 parent 574e14f commit 268edb7
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,7 @@ on:
workflow_dispatch:

jobs:
pre_check:
runs-on: ubuntu-22.04

name: Pre-check
steps:
- name: Ensure version is bump for tag
run: |
game_version=$(cat .version)
if [[ "${{ github.ref }}" =~ ^refs/tags/* ]]; then
echo "A tag is pushed"
[ "$game_version" == "$GITHUB_REF_NAME" ] && echo "The version file is correct" || exit 2
fi
build:
needs: pre_check
runs-on: ubuntu-20.04
timeout-minutes: 30

Expand Down Expand Up @@ -50,6 +36,11 @@ jobs:
echo "game_version=$(cat .version)" >> $GITHUB_ENV
echo "godot_version=$(cat .godot_version)" >> $GITHUB_ENV
./bump_version.sh
- name: Ensure version is equal to tag
if: startsWith(github.ref, 'refs/tags/v')
run: |
[ "${{ env.game_version }}" == "$GITHUB_REF_NAME" ] || exit 2
- name: Export Marble
uses: ./.github/actions/export-game
Expand Down

0 comments on commit 268edb7

Please sign in to comment.