Fix invalid paths in GitHub Actions and GitLab CI workflow files (#157)
- Automatically adapt the export folder based on project folder location relative to the repository root. - Update workflow files to use Godot 4.3. - Update default export prest names to match Godot 4.0 onwards.
This commit is contained in:
24
.github/workflows/godot-ci.yml
vendored
24
.github/workflows/godot-ci.yml
vendored
@@ -1,8 +1,10 @@
|
||||
name: "godot-ci export"
|
||||
on: push
|
||||
|
||||
# NOTE: If your `project.godot` is at the repository root, set `PROJECT_PATH` below to ".".
|
||||
|
||||
env:
|
||||
GODOT_VERSION: 4.2.1
|
||||
GODOT_VERSION: 4.3
|
||||
EXPORT_NAME: test-project
|
||||
PROJECT_PATH: test-project
|
||||
|
||||
@@ -11,7 +13,7 @@ jobs:
|
||||
name: Windows Export
|
||||
runs-on: ubuntu-20.04
|
||||
container:
|
||||
image: barichello/godot-ci:4.2.1
|
||||
image: barichello/godot-ci:4.3
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -26,8 +28,9 @@ jobs:
|
||||
- name: Windows Build
|
||||
run: |
|
||||
mkdir -v -p build/windows
|
||||
EXPORT_DIR="$(readlink -f build)"
|
||||
cd $PROJECT_PATH
|
||||
godot --headless --verbose --export-release "Windows Desktop" ../build/windows/$EXPORT_NAME.exe
|
||||
godot --headless --verbose --export-release "Windows Desktop" "$EXPORT_DIR/windows/$EXPORT_NAME.exe"
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
@@ -38,7 +41,7 @@ jobs:
|
||||
name: Linux Export
|
||||
runs-on: ubuntu-20.04
|
||||
container:
|
||||
image: barichello/godot-ci:4.2.1
|
||||
image: barichello/godot-ci:4.3
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -51,8 +54,9 @@ jobs:
|
||||
- name: Linux Build
|
||||
run: |
|
||||
mkdir -v -p build/linux
|
||||
EXPORT_DIR="$(readlink -f build)"
|
||||
cd $PROJECT_PATH
|
||||
godot --headless --verbose --export-release "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64
|
||||
godot --headless --verbose --export-release "Linux" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64"
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
@@ -63,7 +67,7 @@ jobs:
|
||||
name: Web Export
|
||||
runs-on: ubuntu-20.04
|
||||
container:
|
||||
image: barichello/godot-ci:4.2.1
|
||||
image: barichello/godot-ci:4.3
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -76,8 +80,9 @@ jobs:
|
||||
- name: Web Build
|
||||
run: |
|
||||
mkdir -v -p build/web
|
||||
EXPORT_DIR="$(readlink -f build)"
|
||||
cd $PROJECT_PATH
|
||||
godot --headless --verbose --export-release "HTML5" ../build/web/index.html
|
||||
godot --headless --verbose --export-release "Web" "$EXPORT_DIR/web/index.html"
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
@@ -96,7 +101,7 @@ jobs:
|
||||
name: Mac Export
|
||||
runs-on: ubuntu-20.04
|
||||
container:
|
||||
image: barichello/godot-ci:4.2.1
|
||||
image: barichello/godot-ci:4.3
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -109,8 +114,9 @@ jobs:
|
||||
- name: Mac Build
|
||||
run: |
|
||||
mkdir -v -p build/mac
|
||||
EXPORT_DIR="$(readlink -f build)"
|
||||
cd $PROJECT_PATH
|
||||
godot --headless --verbose --export-release "Mac OSX" ../build/mac/$EXPORT_NAME.zip
|
||||
godot --headless --verbose --export-release "macOS" "$EXPORT_DIR/mac/$EXPORT_NAME.zip"
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user