Add files via upload #21
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
# Whenever a tag push matching pattern "v*" then run the job | |
on: | |
push: | |
jobs: | |
# job id, can be anything | |
export_game: | |
# Always use ubuntu-latest for this action | |
runs-on: ubuntu-latest | |
# Add permission for release creation. Can be made narrower according to your needs | |
permissions: write-all | |
# Job name, can be anything | |
name: Export Spectrum code | |
steps: | |
# Always include the checkout step so that | |
# your project is available for Godot to export | |
- name: checkout | |
uses: actions/checkout@v3.3.0 | |
- name: export Spectrum | |
id: export | |
# Use latest version (see releases for all versions) | |
uses: firebelley/godot-export@v5.2.0 | |
with: | |
# Defining all the required inputs | |
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_linux.x86_64.zip | |
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_export_templates.tpz | |
relative_project_path: ./ | |
archive_output: true | |
- name: generate FOO unique variable based on timestamp | |
run: echo FOO=foobar--$(date +%s) >> $GITHUB_ENV | |
# 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/release-action@v1.12.0 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
generateReleaseNotes: true | |
tag: ${{ env.FOO }} | |
prerelease: true | |
artifacts: ${{ steps.export.outputs.archive_directory }}/* | |