-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jonathandavidlewis/main
Update CICD pipeline to Godot 4.2.2
- Loading branch information
Showing
2 changed files
with
22 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,143 +1,43 @@ | ||
name: "godot-ci export" | ||
on: | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
env: | ||
GODOT_VERSION: 3.5 | ||
EXPORT_NAME: godot_test_framework | ||
PROJECT_PATH: project/ | ||
GODOT_VERSION: 4.2.2 | ||
EXPORT_NAME: <name-of-you-project> | ||
PROJECT_PATH: <path-to-your-project-root> | ||
|
||
jobs: | ||
|
||
export-web: | ||
name: Web Export | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: barichello/godot-ci:3.5 | ||
image: barichello/godot-ci:4.2.2 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3.0.2 | ||
uses: actions/checkout@v2 | ||
with: | ||
lfs: true | ||
- name: Setup | ||
run: | | ||
mkdir -v -p ~/.local/share/godot/templates | ||
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable | ||
mkdir -v -p ~/.local/share/godot/export_templates | ||
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable | ||
- name: Web Build | ||
run: | | ||
mkdir -v -p build/web | ||
cd $PROJECT_PATH | ||
godot -v --export "HTML5" ../build/web/index.html | ||
godot --headless --verbose --export-release "HTML5" ../build/web/index.html | ||
cd ../build/web && zip -r ../../web.zip ./* && cd - | ||
pwd | ||
ls | ||
- name: Release | ||
id: release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
token: ${{ secrets.GH_CREDENTIALS }} | ||
files: web.zip | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
- name: Install rsync | ||
run: | | ||
apt-get update && apt-get install -y rsync | ||
- name: Deploy to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@releases/v4 | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: build/web # The folder the action should deploy. | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_CREDENTIALS }} | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
|
||
export-linux: | ||
name: Linux Export | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: barichello/godot-ci:3.5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
lfs: true | ||
- name: Setup | ||
run: | | ||
mkdir -v -p ~/.local/share/godot/templates | ||
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable | ||
- name: Linux Build | ||
run: | | ||
mkdir -v -p build/linux | ||
cd $PROJECT_PATH | ||
godot -v --export "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64 | ||
cd ../build/linux && zip -r ../../linux.zip ./* && cd - | ||
pwd | ||
ls | ||
- name: Release | ||
id: release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
token: ${{ secrets.GH_CREDENTIALS }} | ||
files: linux.zip | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
|
||
export-windows: | ||
name: Windows Export | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: barichello/godot-ci:3.5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
lfs: true | ||
- name: Setup | ||
run: | | ||
mkdir -v -p ~/.local/share/godot/templates | ||
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable | ||
- name: Windows Build | ||
run: | | ||
mkdir -v -p build/windows | ||
cd $PROJECT_PATH | ||
godot -v --export "Windows Desktop" ../build/windows/$EXPORT_NAME.exe | ||
cd ../build/windows && zip -r ../../windows.zip ./* && cd - | ||
pwd | ||
ls | ||
name: web | ||
path: build/web | ||
- name: Release | ||
id: release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
token: ${{ secrets.GH_CREDENTIALS }} | ||
files: windows.zip | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
|
||
export-mac: | ||
name: Mac Export | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: barichello/godot-ci:3.5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
lfs: true | ||
- name: Setup | ||
run: | | ||
mkdir -v -p ~/.local/share/godot/templates | ||
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable | ||
- name: Mac Build | ||
run: | | ||
mkdir -v -p build/mac | ||
cd $PROJECT_PATH | ||
godot -v --export "Mac OSX" ../build/mac/$EXPORT_NAME.zip | ||
cd ../build/mac && zip -r ../../mac.zip ./* && cd - | ||
pwd | ||
ls | ||
- name: Release | ||
id: release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
token: ${{ secrets.GH_CREDENTIALS }} | ||
files: mac.zip | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
files: web.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters