-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 800 Bytes
/
Copy pathrelease.yml
File metadata and controls
32 lines (28 loc) · 800 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
# Create a release by pushing a tag to remote.
# If the same tag is pushed again, the artifacts will be updated in the
# respective release on GitHub.
name: Release
on:
push:
tags: ['v*.*.*']
jobs:
build:
uses: ./.github/workflows/build.yml
create-release:
runs-on: ubuntu-latest
permissions:
contents: write # required for release creation
needs: [build]
steps:
- name: Download artifacts from 'build' workflow
uses: actions/download-artifact@v8
with:
path: ~/downloaded
merge-multiple: true
- name: Create GitHub Release
uses: softprops/action-gh-release@v3
with:
draft: true
files: /home/runner/downloaded/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}