-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (55 loc) · 1.39 KB
/
release.yaml
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
name: Wails build
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
env:
NODE_OPTIONS: "--max-old-space-size=4096"
jobs:
build:
name: Build
strategy:
matrix:
build:
- name: 'MarshalController'
platform: 'windows/amd64'
os: 'windows'
runs-on: ${{ matrix.build.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build wails
uses: dAppServer/[email protected]
id: build
with:
build-name: ${{ matrix.build.name }}
build-platform: ${{ matrix.build.platform }}
go-version: '1.21'
create_release:
name: Create release
runs-on: ubuntu-latest
needs: build
permissions:
contents: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Create release tag
id: create_release
run: |
TAG="v$(date +'%d%m%Y')-$(echo ${{ github.sha }} | cut -c1-8)"
echo "Creating release tag $TAG"
echo "::set-output name=tag::$TAG"
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "./artifacts/**/*"
generateReleaseNotes: true
tag: ${{ steps.create_release.outputs.tag }}