-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (40 loc) · 1.15 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
name: Generate release files
permissions:
contents: write
on:
push:
tags:
- "release_*"
jobs:
make_software:
runs-on: ubuntu-latest
container: ghcr.io/mbtaylor1982/container-amiga-gcc-amitools:latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Get the tag / version
id: version
if: startsWith(github.ref, 'refs/tags/release_')
run: echo "version=${GITHUB_REF#refs/tags/release_}" >> $GITHUB_OUTPUT
- name: Invoke Makefile
run: make all lha adf zip VER=${{ steps.version.outputs.version }}
- name: upload build artifacts
uses: actions/upload-artifact@v4
with:
name: software
path: |
*.lha
*.adf
*.zip
if-no-files-found: error
- name: Create a new GitHub release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/release_')
with:
draft: true
body: |
sdmac test utility ${{ steps.version.outputs.version }} release
files: |
*.lha
*.adf
*.zip