Skip to content

Update godot.yml

Update godot.yml #8

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:
- name: Format Tag Name
id: replace_string
uses: frabert/replace-string-action@v2
with:
pattern: '\.'
string: ${{ github.ref_name }}
replace-with: '_'
- uses: actions/checkout@v2
with:
lfs: false
- name: Build
id: build
uses: manleydev/[email protected]
with:
name: "Reia_${{ steps.replace_string.outputs.replaced }}"
preset: ${{ matrix.platform }}
debugMode: "false"
package: true
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
body: |
# Reia - `${{ github.ref_name }}`
...
### 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.replaced }}.zip
asset_content_type: application/zip