Skip to content

Commit

Permalink
Add: Github Action Workflow for this branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox-Alpha committed Aug 18, 2024
1 parent a693523 commit 28bc4a8
Showing 1 changed file with 83 additions and 0 deletions.
83 changes: 83 additions & 0 deletions .github/workflows/export_gd43_stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: "godot-ci export"
on:
push:
branches:
- Godot-43-stable

env:
GODOT_VERSION: 4.3
EXPORT_NAME: J4F-MiniShooterGame

jobs:
export-windows:
name: Windows Export
runs-on: ubuntu-latest
container:
image: barichello/godot-ci:4.3
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates/
ls -Al /root/.local/share/godot/export_templates
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
# mkdir -v -p ~/.local/share/godot/templates
# mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
# # Add SymLink
# ln -s ~/.local/share/godot/export_templates ~/.local/share/godot/export_templates
- name: Windows Build
run: |
mkdir -v -p build/windows
#cd $EXPORT_NAME
godot --headless --verbose --editor --quit-after 10
godot --export-release --headless "Windows Desktop" build/windows/$EXPORT_NAME.exe
- name: Upload Artifact
uses: actions/[email protected]
with:
name: windows
path: build/windows

export-web:
name: Web Export
runs-on: ubuntu-latest
container:
image: barichello/godot-ci:4.2.2
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Setup
run: |
ls -Al /root/.local/share/godot/export_templates
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
# mkdir -v -p ~/.local/share/godot/templates
# mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
# ln -s ~/.local/share/godot/export_templates ~/.local/share/godot/export_templates
- name: Web Build
run: |
mkdir -v -p build/web
#cd $EXPORT_NAME
godot --headless --verbose --editor --quit-after 10
godot --export-release --headless "Web" build/web/index.html
cp ./.github/dist/coi-serviceworker.min.js ./build/web/coi-serviceworker.min.js
- name: Upload Artifact
uses: actions/[email protected]
with:
name: web
path: build/web
# Installing rsync is needed in order to deploy to GitHub Pages. Without it, the build will fail.
- name: Install rsync 📚
run: |
apt-get update && apt-get install -y rsync
- name: Deploy to GitHub Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
# GITHUB_TOKEN: ${{ github.token }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: build/web # The folder the action should deploy.

0 comments on commit 28bc4a8

Please sign in to comment.