Skip to content

Commit

Permalink
feat[ci]: test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjiequan committed Oct 7, 2023
1 parent f221cc6 commit ef69225
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
branches: [ master ]

workflow_dispatch:
inputs:
createRelease:
description: 'Create a new GitHub Release?'
required: true
default: 'false'

jobs:
build:
Expand Down Expand Up @@ -57,12 +62,12 @@ jobs:
path: AssetStudioGUI/bin/Release/net6.0-windows/publish

- name: Create Release
if: github.event_name == 'workflow_dispatch' && github.event.inputs.createRelease == 'true'
id: create_release
uses: actions/create-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
body: Description of the release.
draft: false
prerelease: false
Expand Down

0 comments on commit ef69225

Please sign in to comment.