-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 797 Bytes
/
release.yml
File metadata and controls
36 lines (30 loc) · 797 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: Create Release
on:
workflow_call:
workflow_dispatch:
jobs:
release:
if: startsWith(github.ref, 'refs/tags/v')
name: "release"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'false'
- name: Download artifacts
uses: actions/download-artifact@v2
with:
path: artifacts
- name: Get tag name
id: get_version
run: echo ::set-output name=TAG_NAME::${GITHUB_REF/refs\/tags\//}
shell: bash
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.get_version.outputs.TAG_NAME }}
files: |
artifacts/**/*.whl
body_path: release_notes.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}