-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.61 KB
/
main.yaml
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
name: Release
on:
workflow_dispatch:
inputs:
version:
description: Semantic Version
required: true
type: string
jobs:
create_release:
runs-on: ubuntu-latest
name: create & deploy new release
steps:
- name: checkout
uses: actions/checkout@v4.1.0
with:
fetch-depth: 0
- name: export game
id: export
uses: firebelley/godot-export@v5.2.1
with:
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.1.1/Godot_v4.1.1-stable_linux.x86_64.zip
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.1.1/Godot_v4.1.1-stable_export_templates.tpz
relative_project_path: ./
cache: true
archive_output: true
- name: create release
uses: softprops/action-gh-release@v0.1.15
with:
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true
tag_name: ${{ inputs.version }}
files: ${{ steps.export.outputs.archive_directory }}/!(web*)
- name: prepare web release & deployment
run: |
mkdir -p remote/${{ inputs.version }}
cp -rT ${{ steps.export.outputs.build_directory }}/web remote/${{ inputs.version }}/
rm -rf ${{ steps.export.outputs.archive_directory }}/web.zip
- name: deploy web release
uses: s0/git-publish-subdir-action@v2.6.0
env:
REPO: self
BRANCH: gh-pages
FOLDER: remote
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CLEAR_GLOBS_FILE: ".clear-target-files"