Skip to content

Commit

Permalink
Move web build to top for visibility, since it's not disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanodeath committed Jul 9, 2024
1 parent 0a516db commit bb5ef99
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/godot-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ env:
PROJECT_PATH: clicky-clicker

jobs:
export-windows:
name: Windows Export
export-web:
name: Web Export
runs-on: ubuntu-latest
if: false # remove if you want to enable
container:
image: barichello/godot-ci:4.2.2
steps:
Expand All @@ -25,19 +24,26 @@ jobs:
run: |
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: Windows Build
- name: Web Build
run: |
mkdir -v -p build/windows
mkdir -v -p build/web/
cd $PROJECT_PATH
godot --headless --verbose --export-release "Windows Desktop" ../build/windows/$EXPORT_NAME.exe
godot --headless --verbose --export-release "Web" ../build/web/index.html
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: windows
path: build/windows

export-linux:
name: Linux Export
name: web
path: build/web
- 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.

export-windows:
name: Windows Export
runs-on: ubuntu-latest
if: false # remove if you want to enable
container:
Expand All @@ -51,20 +57,21 @@ jobs:
run: |
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: Linux Build
- name: Windows Build
run: |
mkdir -v -p build/linux
mkdir -v -p build/windows
cd $PROJECT_PATH
godot --headless --verbose --export-release "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64
godot --headless --verbose --export-release "Windows Desktop" ../build/windows/$EXPORT_NAME.exe
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: linux
path: build/linux
name: windows
path: build/windows

export-web:
name: Web Export
export-linux:
name: Linux Export
runs-on: ubuntu-latest
if: false # remove if you want to enable
container:
image: barichello/godot-ci:4.2.2
steps:
Expand All @@ -76,23 +83,16 @@ jobs:
run: |
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
- name: Linux Build
run: |
mkdir -v -p build/web/
mkdir -v -p build/linux
cd $PROJECT_PATH
godot --headless --verbose --export-release "Web" ../build/web/index.html
godot --headless --verbose --export-release "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: web
path: build/web
- 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.
name: linux
path: build/linux

export-mac:
name: Mac Export
Expand Down

0 comments on commit bb5ef99

Please sign in to comment.