-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 892 Bytes
/
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
name: Release
on:
workflow_dispatch:
push:
tags: ["v*.*.*"]
jobs:
build:
uses: ./.github/workflows/build.yml
release:
name: Create Release
runs-on: ubuntu-latest
needs: build
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: ${{ github.workspace }}/_artifacts
- name: Add version to binaries
run: |
mkdir -p ${{ github.workspace }}/_binaries
for file in ${{ github.workspace }}/_artifacts/blend-*/blend-*; do
new_file=$(basename "$file" | sed "s/blend/blend-${{ github.ref_name }}/")
mv "$file" "${{ github.workspace }}/_binaries/$new_file"
done
- uses: ncipollo/release-action@v1
with:
artifacts: _binaries/blend*
body: "[wip]"
draft: false