-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (47 loc) · 1.75 KB
/
export.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Export All
on:
push:
branches: [ master ]
env:
GODOT_VERSION: 4.3
EXPORT_NAME: ClickyCat
TAG: v2.0.3
jobs:
export:
name: Export 🐧🪟🌐
runs-on: ubuntu-latest
steps:
# Always include the checkout step so that
# your project is available for Godot to export
- name: 🛒 checkout
uses: actions/checkout@v4
- name: 📤 export game
id: export
# Use latest version (see releases for all versions)
uses: firebelley/[email protected]
with:
# Defining all the required inputs
godot_executable_download_url: https://github.com/godotengine/godot-builds/releases/download/4.4-dev3/Godot_v4.4-dev3_linux.x86_64.zip
godot_export_templates_download_url: https://github.com/godotengine/godot-builds/releases/download/4.4-dev3/Godot_v4.4-dev3_export_templates.tpz
relative_project_path: ./
archive_output: true
- name: Install rsync 📚
run: |
sudo apt-get update && sudo apt-get install -y rsync
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
single-commit: true
folder: ${{ steps.export.outputs.build_directory }}/Web # The folder the action should deploy.
branch: gh-pages
# This release action has worked well for me. However, you can most likely use any release action of your choosing.
# https://github.com/ncipollo/release-action
- name: create release
uses: ncipollo/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
tag: ${{ env.TAG }}
artifacts: ${{ steps.export.outputs.archive_directory }}/*
replacesArtifacts: true