Skip to content
This repository was archived by the owner on Jan 4, 2026. It is now read-only.

Commit 58db7f6

Browse files
committed
Adjust build workflow to enable publishing to Github
1 parent ac460a3 commit 58db7f6

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ on:
55
pull_request:
66
types: [opened, synchronize, reopened]
77
workflow_dispatch:
8+
inputs:
9+
# Note: Make sure to select a tag when dispatching the workflow.
10+
publish:
11+
description: 'Publish to Github?'
12+
required: false
13+
type: boolean
14+
default: false
815

916
jobs:
1017
build:
@@ -41,3 +48,10 @@ jobs:
4148
uses: actions/upload-artifact@v4
4249
with:
4350
path: staging
51+
- name: Publish to Github
52+
if: ${{ github.event.inputs.publish == 'true' && github.ref_type == 'tag' }}
53+
uses: softprops/action-gh-release@v2
54+
with:
55+
files: staging/**
56+
fail_on_unmatched_files: true
57+
draft: true

0 commit comments

Comments
 (0)