2020-07-23 15:00:19 +00:00
|
|
|
name: "dev-web"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
env:
|
2022-08-07 16:09:37 +00:00
|
|
|
GODOT_VERSION: 3.5
|
2020-07-23 15:00:19 +00:00
|
|
|
EXPORT_NAME: Pixelorama
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
export-web:
|
|
|
|
name: Web Export 🌐
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2022-08-07 16:09:37 +00:00
|
|
|
image: docker://barichello/godot-ci:3.5
|
2020-07-23 15:00:19 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout 🛎️
|
2021-12-20 00:46:57 +00:00
|
|
|
uses: actions/checkout@v2
|
2020-07-23 15:00:19 +00:00
|
|
|
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 🚀
|
2022-08-07 16:22:31 +00:00
|
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
2020-07-23 15:00:19 +00:00
|
|
|
with:
|
2022-08-07 16:19:33 +00:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
folder: build/web # The folder the action should deploy.
|
|
|
|
target-folder: early_access
|