-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 824 Bytes
/
release.yml
File metadata and controls
36 lines (30 loc) · 824 Bytes
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
name: Release
run-name: Release ${{ github.ref_name }}
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
release:
name: Release
runs-on: ubuntu-22.04
needs: build
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: Package artifacts
run: |
for artifact in dfhack-lua-definitions-*
do
tar -zcf ${artifact}.tar.gz $artifact
zip -9qr ${artifact}.zip $artifact
done
- name: Create a new release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create $(git tag --points-at HEAD) dfhack-lua-definitions-*.zip dfhack-lua-definitions-*.tar.gz