Skip to content

Commit

Permalink
Merge pull request #2 from jonathandavidlewis/main
Browse files Browse the repository at this point in the history
Update CICD pipeline to Godot 4.2.2
  • Loading branch information
loteque authored Jun 6, 2024
2 parents 2307dc4 + c8ed21a commit 67794a6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 122 deletions.
128 changes: 14 additions & 114 deletions .github/workflows/godot-ci.yml
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
16 changes: 8 additions & 8 deletions .github/workflows/publish-to-itchio.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: "publish to itch.io"
on:
release:
types: [published]
on: release

env:
ITCH_USER: your_itchio_username
ITCH_GAME: the_url_stub_of_your_game
GODOT_VERSION: 4.2.2
ITCH_USER: <your-itch-username>
ITCH_GAME: <your-games-url-stub-on-itch>
BUTLER_API_KEY: ${{ secrets.BUTLER_CREDENTIALS }}
PROJECT_PATH: <path-to-your-project-root>

jobs:

release_web:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
ITCH_USER: ${{ env.ITCH_USER }}
PACKAGE: linux.zip
VERSION: ${{ steps.download-linux.outputs.version }}

release_windows:
runs-on: ubuntu-latest
steps:
Expand All @@ -68,7 +68,7 @@ jobs:
ITCH_USER: ${{ env.ITCH_USER }}
PACKAGE: windows.zip
VERSION: ${{ steps.download-windows.outputs.version }}

release_mac:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 67794a6

Please sign in to comment.