fix: pages action remove branch filter
迁移到新仓库分支从main改成master了 Log:
This commit is contained in:
parent
04ab9e9c99
commit
bc30fd3ab9
4
.github/workflows/pages.yml
vendored
4
.github/workflows/pages.yml
vendored
@ -1,9 +1,7 @@
|
||||
name: Deploy to GitHub Pages
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
workflow_dispatch:
|
||||
permissions:
|
||||
contents: read
|
||||
@ -36,7 +34,7 @@ jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
Loading…
Reference in New Issue
Block a user