-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 977 Bytes
/
workflow.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
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Create Release
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set environment
run: |
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "NAME=${GITHUB_REPOSITORY#epimorphics/}" >> $GITHUB_ENV
- name: Build assets
run: make NAME=${{ env.NAME }} VERSION=${{ env.VERSION }} clean assets
- name: Create release
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: "${{ env.NAME }}_${{ env.VERSION }}_linux_amd64.tar.gz,${{ env.NAME }}_${{ env.VERSION }}_sha512-checksums.txt"
body: |
Automated release ${{ github.ref }}
name: Release ${{ github.ref }}
tag: ${{ github.ref }}