-
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (30 loc) · 958 Bytes
/
Copy pathrelease.yml
File metadata and controls
34 lines (30 loc) · 958 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
name: Release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
jobs:
build:
uses: ./.github/workflows/ci-build.yml
# Create a draft GitHub release for stable tags (skip -rc.* prereleases)
release:
needs: build
runs-on: ubuntu-latest
if: ${{ !contains(github.ref_name, '-rc.') }}
permissions:
contents: write
steps:
- name: Download module artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: OpenShock.LocalRelay.module
path: artifacts/
- name: Create draft release
uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b # v3.0.1
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: true
generate_release_notes: true
files: artifacts/OpenShock.LocalRelay.module.zip