Skip to content

chore: Add version to draft release #32

chore: Add version to draft release

chore: Add version to draft release #32

Workflow file for this run

name: Release
permissions:
contents: write
discussions: write
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
release:
name: Create draft release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Godot
uses: chickensoft-games/setup-godot@v1
with:
version: 4.1.1
use-dotnet: false
- name: Verify setup
run: godot --version
- name: Build
run: sh/build.sh
- name: Parse version
id: version
run: |
sh/version.sh envvar >> "$GITHUB_OUTPUT"
sh/version.sh
- name: Release
uses: softprops/action-gh-release@v1
env:
VERSION: ${{ steps.version.outputs.VERSION }}
with:
name: ${{ steps.version.outputs.VERSION }}
files: build/*
draft: true
prerelease: true