Update action to deploy to GH pages

This commit is contained in:
bleeptrack 2020-10-09 10:49:56 +02:00 committed by bleeptrack
parent c24da2bc76
commit 656bf67cf3
2 changed files with 18 additions and 26 deletions

View file

@ -6,8 +6,8 @@ env:
EXPORT_NAME: git-hydra EXPORT_NAME: git-hydra
jobs: jobs:
export-linux: export:
name: Linux Export name: Export
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: barichello/godot-ci:3.2.3 image: barichello/godot-ci:3.2.3
@ -20,31 +20,23 @@ jobs:
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
- name: Linux Build - name: Linux Build
run: | run: |
mkdir -v -p build/linux mkdir -v -p build/linux/$EXPORT_NAME
godot -v --export "Linux" build/linux/$EXPORT_NAME.x86_64 godot -v --export "Linux" build/linux/$EXPORT_NAME/$EXPORT_NAME.x86_64
- name: Upload Artifact cd build/linux
uses: actions/upload-artifact@v1 zip -r $EXPORT_NAME.zip $EXPORT_NAME
with: rm $EXPORT_NAME -rf
name: linux
path: build/linux
export-mac:
name: Mac Export
runs-on: ubuntu-latest
container:
image: barichello/godot-ci:3.2.3
steps:
- name: Checkout
uses: actions/checkout@v1
- 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 - name: Mac Build
run: | run: |
mkdir -v -p build/mac mkdir -v -p build/mac
godot -v --export "Mac OS" build/mac/$EXPORT_NAME.zip godot -v --export "Mac OS" build/mac/$EXPORT_NAME.zip
- name: Upload Artifact - name: Install rsync
uses: actions/upload-artifact@v1 run: |
apt-get update && apt-get install -y rsync
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.6.2
with: with:
name: mac GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
path: build/mac BRANCH: gh-pages
FOLDER: build
CLEAN: true

View file

@ -42,7 +42,7 @@ script_encryption_key=""
custom_template/debug="" custom_template/debug=""
custom_template/release="" custom_template/release=""
application/name="Untitled Game" application/name="git-hydra"
application/info="" application/info=""
application/icon="" application/icon=""
application/identifier="" application/identifier=""