Skip to content

Commit

Permalink
Update Github Action script
Browse files Browse the repository at this point in the history
  • Loading branch information
zjn0505 committed Nov 26, 2024
1 parent dee31cc commit 0b43915
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
tags:
- 'v*'
pull_request:
branches: [ master ]

Expand All @@ -22,7 +24,7 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# Checks-outs your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
Expand All @@ -34,3 +36,15 @@ jobs:
run: |
rm *.yml
python ./workflow-build.py -d -f ./
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
draft: true
prerelease: true
name: Release ${{ github.ref_name }}
body: |
Release candidate for version ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0b43915

Please sign in to comment.