-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 840 Bytes
/
tag.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: Tag
on:
push:
tags:
- "*"
jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
release:
name: Release
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: assets
- name: Install fd
run: |
sudo apt update
sudo apt install fd-find
ln -s $(which fdfind) /usr/local/bin/fd
- name: Prep Assets
run: |
cd assets
fd -tf -x mv '{}' ./
fd -td -x rmdir '{}'
- name: Create Release
run: gh release create --generate-notes ${GITHUB_REF#refs/tags/} assets/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}