-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (38 loc) · 1.22 KB
/
tagged-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
name: "tagged-release"
# run on any changes tagged with v*, will copy data to releases
on:
push:
tags:
- 'v*'
jobs:
tagged-release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-latest, macos-latest, windows-latest]
#os: [macos-latest, windows-latest]
os: [macos-15, windows-latest]
steps:
- name: Update CMake
uses: lukka/get-cmake@latest
- name: Check out code
uses: actions/checkout@v4
- name: Build and install to bin/
run: ./scripts/cibuild.sh ${{ matrix.os }}
shell: bash
# this doesn't work with a matrix, only macos is uploaded, no way to specify same tag
# - name: Upload build to releases
# uses: "marvinpinto/action-automatic-releases@latest"
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# prerelease: false
# files: bin/*.zip
# so do another upload to get both
- name: Upload all builds to releases
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bin/*.zip
file_glob: true
tag: ${{ github.ref }}
overwrite: true