-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (37 loc) · 1.25 KB
/
build_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
# .github/workflows/release.yml
on:
release:
types: [created, edited]
jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-unknown-linux-musl]
steps:
- name: what is in the box
run: |
echo "payload" ${{ github.event}}
- name: what is in the box part 2
run: |
echo "payload" ${{ github.event.release}}
- uses: actions/checkout@v3
with:
ref: ${{ github.event.release.tag_name }}
- name: Compile and release
uses: rust-build/rust-build.action@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUSTTARGET: ${{ matrix.target }}
EXTRA_FILES: "README.md LICENSE"
ARCHIVE_TYPES: "tar.gz"
- name: tell release flake
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.ANYSNAKE2_RELASE_FLAKE_SECRET }}" \
https://api.github.com/repos/TyberiusPrime/anysnake2_release_flakes/dispatches \
-d '{"event_type":"on-demand-test","client_payload":{"release_version":"${{ github.event.release.tag_name }}"}}'