mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Split GitHub Actions workflow into two
One for the dev (master branch) desktop builds, and one for the dev web build for gh-pages (early_access). The dev-web workflow only runs on pushes on the master branch and not on pull requests.
This commit is contained in:
parent
af915caf7a
commit
6977d0206b
|
@ -1,4 +1,4 @@
|
||||||
name: "godot-ci-test"
|
name: "dev-desktop-builds"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -85,30 +85,3 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: Mac
|
name: Mac
|
||||||
path: ./build/mac/
|
path: ./build/mac/
|
||||||
|
|
||||||
export-web:
|
|
||||||
name: Web Export 🌐
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: docker://barichello/godot-ci:3.2.2
|
|
||||||
steps:
|
|
||||||
- name: Checkout 🛎️
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
- name: Setup 💻
|
|
||||||
run: |
|
|
||||||
mkdir -v -p build/web ~/.local/share/godot/templates
|
|
||||||
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
|
|
||||||
- name: Web Build 🔧
|
|
||||||
run: godot -v --export "HTML5" ./build/web/index.html
|
|
||||||
- name: Install rsync 📚
|
|
||||||
run: |
|
|
||||||
apt-get update && apt-get install -y rsync
|
|
||||||
- name: Deploy 🚀
|
|
||||||
uses: JamesIves/github-pages-deploy-action@releases/v3
|
|
||||||
with:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
BRANCH: gh-pages # The branch the action should deploy to.
|
|
||||||
FOLDER: build/web # The folder the action should deploy.
|
|
||||||
TARGET_FOLDER: early_access
|
|
37
.github/workflows/dev-web.yml
vendored
Normal file
37
.github/workflows/dev-web.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
name: "dev-web"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
GODOT_VERSION: 3.2.2
|
||||||
|
EXPORT_NAME: Pixelorama
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
export-web:
|
||||||
|
name: Web Export 🌐
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: docker://barichello/godot-ci:3.2.2
|
||||||
|
steps:
|
||||||
|
- name: Checkout 🛎️
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: Setup 💻
|
||||||
|
run: |
|
||||||
|
mkdir -v -p build/web ~/.local/share/godot/templates
|
||||||
|
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
|
||||||
|
- name: Web Build 🔧
|
||||||
|
run: godot -v --export "HTML5" ./build/web/index.html
|
||||||
|
- name: Install rsync 📚
|
||||||
|
run: |
|
||||||
|
apt-get update && apt-get install -y rsync
|
||||||
|
- name: Deploy 🚀
|
||||||
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
BRANCH: gh-pages # The branch the action should deploy to.
|
||||||
|
FOLDER: build/web # The folder the action should deploy.
|
||||||
|
TARGET_FOLDER: early_access
|
Loading…
Reference in a new issue