StickerClone/.forgejo/workflows/build.yaml

45 lines
1.6 KiB
YAML
Raw Normal View History

2024-07-25 20:12:08 +00:00
on:
push:
2024-07-28 13:31:02 +00:00
tags:
- "v*"
2024-07-25 20:12:08 +00:00
jobs:
2024-07-28 13:02:40 +00:00
# job id, can be anything
export_game:
# Always use ubuntu-latest for this action
2024-07-25 20:12:08 +00:00
runs-on: linux_amd64
2024-07-28 13:02:40 +00:00
# Add permission for release creation. Can be made narrower according to your needs
permissions: write-all
# Job name, can be anything
name: Export Game
2024-07-25 20:12:08 +00:00
steps:
2024-07-28 13:02:40 +00:00
# Always include the checkout step so that
# your project is available for Godot to export
- name: checkout
uses: actions/checkout@v3.3.0
2024-07-29 09:44:39 +00:00
with:
lfs: true
2024-07-28 13:02:40 +00:00
- name: export game
id: export
# Use latest version (see releases for all versions)
2024-07-29 10:58:46 +00:00
uses: https://github.com/lucastucious/godot-export@v5.3.1
2024-07-28 13:02:40 +00:00
with:
# Defining all the required inputs
godot_executable_download_url: https://github.com/godotengine/godot/releases/download/4.2.2-stable/Godot_v4.2.2-stable_linux.x86_64.zip
godot_export_templates_download_url: https://github.com/godotengine/godot/releases/download/4.2.2-stable/Godot_v4.2.2-stable_export_templates.tpz
2024-07-28 13:02:40 +00:00
relative_project_path: ./
2024-07-29 10:37:34 +00:00
relative_export_path: ./builds
2024-07-28 13:02:40 +00:00
archive_output: true
2024-07-29 10:58:46 +00:00
#project_name: stickerClone
2024-07-29 07:57:04 +00:00
cache: true
2024-07-28 13:02:40 +00:00
# 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
2024-07-29 07:56:17 +00:00
uses: https://code.forgejo.org/actions/forgejo-release@v2.2.0
2024-07-28 13:02:40 +00:00
with:
2024-07-29 07:56:17 +00:00
direction: upload
release-dir: ${{ steps.export.outputs.archive_directory }}
token: ${{ env.GITHUB_TOKEN }}
2024-07-29 10:37:34 +00:00
release-notes: "New build"
2024-07-29 10:58:46 +00:00
# override: true