-
Notifications
You must be signed in to change notification settings - Fork 44
59 lines (51 loc) · 1.23 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Release
on:
workflow_dispatch:
inputs:
version:
required: true
type: string
default: 1.7.0
description: Release tag
run-name: Release ${{ inputs.version }}
permissions:
actions: read
contents: write
env:
artifact-name: Skybolt-${{ inputs.version }}.zip
jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
strategy:
fail-fast: false
matrix:
os: [windows-2019]
with:
os: ${{ matrix.os }}
upload: true
package:
name: Package
needs: [build]
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: Skybolt-windows-2019
path: Skybolt-windows-2019
- run: |
find .
mv Skybolt-windows-2019/Skybolt.zip Skybolt-windows-2019.zip
- name: "Create release"
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.version }}
prerelease: false
make_latest: true
target_commitish: ${{ github.sha }}
name: Skybolt ${{ inputs.version }}
files: |
Skybolt-windows-2019.zip