aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/actions/openvic2-env/action.yml10
-rw-r--r--.github/workflows/builds.yml13
2 files changed, 15 insertions, 8 deletions
diff --git a/.github/actions/openvic2-env/action.yml b/.github/actions/openvic2-env/action.yml
index 245777d..8fea1b3 100644
--- a/.github/actions/openvic2-env/action.yml
+++ b/.github/actions/openvic2-env/action.yml
@@ -22,6 +22,12 @@ runs:
} catch(error) {
if (error.response.status != 404) throw error;
const tagList = await github.rest.repos.listTags({owner: context.repo.owner, repo: context.repo.repo});
- core.exportVariable(tag_name, tagList.data[0].name);
- core.exportVariable(release_name, tagList.data[0].name);
+ if (tagList.data.length == 0) {
+ core.warning("Could not list tags, this repo has no tags on it, setting tag_name and release_name environment variables to '<UserRepo-NoTag>' and '<UserRepo-NoRelease>', you can fetch tags with 'git fetch --tags' <remote-name>' and push tags with 'git push --tags");
+ core.exportVariable(tag_name, `<${context.repo.owner}/${context.repo.repo}-NoTag>`);
+ core.exportVariable(release_name, `<${context.repo.owner}/${context.repo.repo}-NoRelease>`);
+ } else {
+ core.exportVariable(tag_name, tagList.data[0].name);
+ core.exportVariable(release_name, tagList.data[0].name);
+ }
} \ No newline at end of file
diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml
index be33095..772b16c 100644
--- a/.github/workflows/builds.yml
+++ b/.github/workflows/builds.yml
@@ -143,8 +143,8 @@ jobs:
id: export_game
uses: Spartan322/godot-export@master
with:
- godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.0.1/Godot_v4.0.1-stable_linux.x86_64.zip
- godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.0.1/Godot_v4.0.1-stable_export_templates.tpz
+ godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.0.2/Godot_v4.0.2-stable_linux.x86_64.zip
+ godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.0.2/Godot_v4.0.2-stable_export_templates.tpz
relative_project_path: ./game
export_as_pack: true
export_debug: true
@@ -183,15 +183,16 @@ jobs:
- name: Install WINE
id: wine_install
run: |
- sudo apt install wine64
+ sudo apt update
+ sudo apt install --fix-missing wine64
echo "WINE_PATH=$(which wine64)" >> $GITHUB_OUTPUT
- name: Export game
id: export_game
uses: Spartan322/godot-export@master
with:
- godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.0.1/Godot_v4.0.1-stable_linux.x86_64.zip
- godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.0.1/Godot_v4.0.1-stable_export_templates.tpz
+ godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.0.2/Godot_v4.0.2-stable_linux.x86_64.zip
+ godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.0.2/Godot_v4.0.2-stable_export_templates.tpz
relative_project_path: ./game
archive_output: true
wine_path: ${{ steps.wine_install.outputs.WINE_PATH }}
@@ -212,4 +213,4 @@ jobs:
name: ${{ github.event.repository.name }}
retention-days: 15
path: |
- ${{ steps.export_game.outputs.archive_directory }} \ No newline at end of file
+ ${{ steps.export_game.outputs.archive_directory }}