Skip to content

Godot Builder

Godot Builder #6

Workflow file for this run

name: Godot Builder
on:
pull_request: {}
push:
tags:
- 'v*'
jobs:
Godot:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [win64] #, linux, mac]
steps:
- uses: actions/checkout@v2
with:
lfs: false
- name: Build
id: build
uses: manleydev/build-godot-action@v1.5.0
with:
name: "Reia.exe"
preset: ${{ matrix.platform }}
debugMode: "false"
- name: Get Tag Name
id: tag_name
uses: revam/gh-action-get-tag-and-version@v1
with:
tag: ${{ github.ref }}
- name: Format Tag Name
id: replace_string
uses: frabert/replace-string-action@v2
with:
pattern: '\.'
string: ${{ steps.tag_name.outputs.tag }}
replace-with: '_'
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_name.outputs.tag }}
release_name: ${{ steps.tag_name.outputs.tag }}
body: |
# Reia - `${{ steps.tag_name.outputs.tag }}`
...
### Changes
**Added:**
- ...
**Removed:**
- ...
**Changed:**
- ...
**Fixed:**
- ...
----
...
draft: true
prerelease: true
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ${{ github.workspace }}/${{ steps.build.outputs.build }}
asset_name: Reia_${{ steps.replace_string.outputs }}.zip
asset_content_type: application/zip