-
-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (40 loc) · 1017 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Release
permissions:
contents: write
discussions: write
on:
push:
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: Delete draft release(s)
uses: hugo19941994/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.version.outputs.VERSION }}
files: build/*
draft: true
prerelease: true