1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul synced 2024-09-18 01:50:50 +00:00
strimertul/.github/workflows/release.yml

54 lines
1.5 KiB
YAML
Raw Normal View History

2021-09-18 20:28:34 +00:00
name: Release
on:
push:
tags:
- "v*.*.*"
2022-11-25 17:23:27 +00:00
- "v*.*.*-beta.*"
- "v*.*.*-rc.*"
2021-09-18 20:28:34 +00:00
2023-01-10 08:30:55 +00:00
env:
GOPRIVATE: git.sr.ht
2021-09-18 20:28:34 +00:00
jobs:
2023-05-21 19:18:05 +00:00
release:
2022-11-23 21:33:23 +00:00
strategy:
fail-fast: false
matrix:
2023-01-10 08:30:55 +00:00
build:
[
{
name: strimertul-linux-amd64,
platform: linux/amd64,
os: ubuntu-latest,
},
{ name: "strimertul", platform: windows/amd64, os: windows-latest },
{
name: "strimertul",
platform: darwin/universal,
os: macos-latest,
},
]
2022-11-23 21:33:23 +00:00
runs-on: ${{ matrix.build.os }}
2021-09-18 20:28:34 +00:00
steps:
2022-11-23 21:33:23 +00:00
- uses: actions/checkout@v2
2023-03-31 10:19:55 +00:00
- name: Process version tag
2023-03-31 10:33:31 +00:00
id: version
uses: ncipollo/semantic-version-action@v1
- name: Update wails.json fileVersion
2023-03-31 10:05:53 +00:00
uses: jossef/action-set-json-field@v2.1
with:
file: wails.json
field: info.productVersion
2023-03-31 10:44:34 +00:00
value: "${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }}"
2023-03-31 09:43:33 +00:00
- uses: ashkeel/wails-build-action@0faaf35c690d88c3463349c6bf0bbdc53af5e5a8
2021-09-18 20:28:34 +00:00
with:
2022-12-23 11:15:56 +00:00
build-name: ${{ matrix.build.name }}
2022-11-23 21:33:23 +00:00
build-platform: ${{ matrix.build.platform }}
2022-11-25 17:23:27 +00:00
windows-nsis-installer: false
2022-12-24 13:49:54 +00:00
macos-package-file-name: strimertul
2022-11-25 17:23:27 +00:00
macos-package-type: dmg
2023-11-05 11:48:38 +00:00
go-version: "1.21"
2022-12-24 13:35:54 +00:00
draft: true
2023-03-31 09:43:33 +00:00
ldflags: "-X main.appVersion=${{ github.ref_name }}"