online multiplayer chess game (note server currently down)
Diffstat (limited to '.github/workflows/export.yml')
-rw-r--r--.github/workflows/export.yml118
1 files changed, 101 insertions, 17 deletions
diff --git a/.github/workflows/export.yml b/.github/workflows/export.yml
index f0cdba4..7b912b9 100644
--- a/.github/workflows/export.yml
+++ b/.github/workflows/export.yml
@@ -1,26 +1,110 @@
+name: "export"
on:
push:
branches:
- main
+env:
+ GODOT_VERSION: 3.4.4
+ EXPORT_NAME: chess
+
jobs:
- export_game:
- permissions: write-all # can be read-all, write-all, or read-write
- # Always use ubuntu-latest for this action
- runs-on: ubuntu-latest
- name: export
+ export-windows:
+ name: Windows Export
+ runs-on: ubuntu-20.04
+ container:
+ image: docker://barichello/godot-ci:3.4.4
+ steps:
+ - name: Checkout
+ 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
+ - name: Windows Build
+ run: |
+ mkdir -v -p build/windows
+ godot -v --export "Windows" ./build/windows/$EXPORT_NAME.exe
+ - name: Upload Artifact
+ uses: actions/upload-artifact@v1
+ with:
+ name: windows
+ path: build/windows
+
+ export-linux:
+ name: Linux Export
+ runs-on: ubuntu-20.04
+ container:
+ image: docker://barichello/godot-ci:3.4.4
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - 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
+ godot -v --export "Linux" ./build/linux/$EXPORT_NAME.x86_64
+ - name: Upload Artifact
+ uses: actions/upload-artifact@v1
+ with:
+ name: linux
+ path: build/linux
+
+ export-web:
+ name: Web Export
+ runs-on: ubuntu-20.04
+ container:
+ image: docker://barichello/godot-ci:3.4.4
steps:
- - name: checkout
- uses: actions/[email protected]
- with: # Ensure that you get the entire project history
- fetch-depth: 0
+ - name: Checkout
+ uses: actions/checkout@v2
+ - 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: Web Build
+ run: |
+ mkdir -v -p build/web
+ godot -v --export "HTML" ./build/web/index.html
+ - 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: export game
- uses: firebelley/[email protected]
+ export-mac:
+ name: Mac Export
+ runs-on: ubuntu-20.04
+ container:
+ image: docker://barichello/godot-ci:3.4.4
+ steps:
+ - name: Checkout
+ 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
+ - name: Mac Build
+ run: |
+ mkdir -v -p build/mac
+ godot -v --export "Mac" ./build/mac/$EXPORT_NAME.zip
+ - name: Upload Artifact
+ uses: actions/upload-artifact@v1
with:
- # Defining all the required inputs
- godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/3.4.4/Godot_v3.4.4-stable_linux_headless.64.zip
- godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/3.4.4/Godot_v3.4.4-stable_export_templates.tpz
- relative_project_path: ./
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ name: mac
+ path: build/mac