-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (31 loc) · 914 Bytes
/
release.yml
File metadata and controls
37 lines (31 loc) · 914 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
37
name: Release
on:
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yml
release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: ./dist
- name: Extract version from Cargo.toml
id: get_version
shell: bash
run: |
version=$(grep '^version =' Cargo.toml | head -n1 | cut -d '"' -f2)
echo "version=$version" >> $GITHUB_OUTPUT
- name: Generate Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.get_version.outputs.version }}
name: Release v${{ steps.get_version.outputs.version }}
draft: true
files: ./dist/**
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}