-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (58 loc) · 1.77 KB
/
release.yml
File metadata and controls
67 lines (58 loc) · 1.77 KB
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
60
61
62
63
64
65
66
67
name: Release
on:
push:
tags:
- '*'
jobs:
release:
name: Release
strategy:
matrix:
include:
- os: ubuntu-22.04
arch: amd64
- os: ubuntu-22.04
arch: arm64
- os: ubuntu-24.04
arch: amd64
- os: ubuntu-24.04
arch: arm64
- os: windows-2022
arch: x64
- os: macos-13
arch: x64
- os: macos-14
arch: arm64
runs-on: ${{ (matrix.arch == 'arm64' && matrix.os == 'macos-14') && 'macos-14' || matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
run: |
rustup update
rustup show
- name: Create version
id: version
uses: EventStore/Automations/create-version-label@master
with:
type: tag
- name: Lookup or create release
uses: EventStore/Automations/lookup-or-create-release@master
id: release
with:
build-type: release
github-token: ${{ secrets.GH_PAT }}
version: ${{ steps.version.outputs.version }}
- name: Packaging
id: package
run: .\release.ps1 -Runner "${{ matrix.os }}" -Arch "${{ matrix.arch }}" -Version "${{ steps.release.outputs.version}}"
shell: pwsh
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: output/${{ steps.package.outputs.artifact_name }}
asset_name: ${{ steps.package.outputs.artifact_name }}
asset_content_type: ${{ steps.package.outputs.content_type }}