Skip to content

Commit

Permalink
ci: fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
JamzumSum committed Feb 22, 2023
1 parent 10a17f0 commit e019c68
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
name: Release and Upload to aioqzone-index

on:
pull_request:
types:
- review_requested
branches:
- "beta"
- "beta/**"
pull_request_target:
types:
- closed
Expand Down Expand Up @@ -45,14 +51,16 @@ jobs:
poetry build
- name: Upload to Release
if: github.event_name != 'pull_request'
id: upload
uses: JamzumSum/actions/hash-release@master
with:
tag: ${{ env.version }}
notes: ${{ github.event.pull_request.body || "" }}
notes: ${{ github.event.pull_request.body || '' }}
files: dist/*

- name: Add to aioqzone-index
if: github.event_name != 'pull_request'
env:
urls: ${{ steps.upload.outputs.urls }}
GH_TOKEN: ${{ secrets.REPO_TOKEN }} # this is a fine-grained PAT
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
- review_requested
branches:
- beta
- "beta/**"
push:
branches:
- beta
- "beta/**"
paths:
- doc/**
- .github/workflows/sphinx.yml
Expand Down

0 comments on commit e019c68

Please sign in to comment.