Skip to content

Commit

Permalink
ci: simplify versions setup
Browse files Browse the repository at this point in the history
  • Loading branch information
florianvazelle committed Oct 12, 2023
1 parent aa28a3a commit f37558f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .combo.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
godot:
version_file: .godot_version
version: '4.1.2'
game:
version_gile: .version
name: Greeter
version: '0.1.1'
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Versions Vars
run: |
echo "game_version=$(cat .version)" >> $GITHUB_ENV
echo "godot_version=$(cat .godot_version)" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Bump Version
- name: Setup Versions
run: |
pip install magic-combo==0.2.*
magic_combo bump_version --version-file .version --cfg-file export_presets.cfg
magic_combo script.add_config_to_github_env
magic_combo script.bump_version --cfg-file export_presets.cfg
- name: Ensure version is equal to tag
if: startsWith(github.ref, 'refs/tags/')
Expand Down
1 change: 0 additions & 1 deletion .godot_version

This file was deleted.

1 change: 0 additions & 1 deletion .version

This file was deleted.

0 comments on commit f37558f

Please sign in to comment.