Release #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |