Skip to content

Commit

Permalink
Add release helper workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vwout committed Jul 23, 2023
1 parent 525aaef commit e974386
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/draft-release.yaml
@@ -0,0 +1,28 @@
ame: Draft release

on:
push:
tags:
- '\d+\.\d+(.\d+)?'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Create release archive
run: zip ${{ github.event.repository.name }}-${{ github.ref }}.zip LICENSE obs-visca-control.lua libvisca.lua ljsocket.lua

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
files: ${{ github.event.repository.name }}-${{ github.ref }}.zip
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e974386

Please sign in to comment.