-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (52 loc) · 1.58 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
60
61
62
63
64
name: Release libquil
on:
workflow_dispatch:
inputs:
type:
description: Bump versions and trigger a new release.
required: true
default: release
options:
- release
jobs:
build:
uses: ./.github/workflows/build.yml
release:
needs: build
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
steps:
- run: |
git config --global user.name "${{ github.triggering_actor }}"
git config --global user.email "${{ github.triggering_actor }}@users.noreply.github.com"
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Download linux artifacts
uses: actions/download-artifact@v3
with:
name: linux-amd64
path: artifacts/
- name: Archive linux artifacts
run: |
cd artifacts && zip linux-amd64.zip libquil/libsbcl.so libquil/libquil.so libquil/libquil.core libquil/libquil.h
- name: Download macos artifacts
uses: actions/download-artifact@v3
with:
name: macos
path: artifacts/
- name: Archive linux artifacts
run: |
cd artifacts && zip macos.zip libquil/libsbcl.so libquil/libquil.dylib libquil/libquil.core libquil/libquil.h
- name: List artifacts
run: |
ls -R artifacts/
unzip -l artifacts/linux-amd64.zip
unzip -l artifacts/macos.zip
- name: Install Knope
uses: knope-dev/action@v2.0.0
with:
version: 0.11.0
- name: Release
run: knope release -v