Skip to content

Commit 280d98d

Browse files
committed
Update deploy.yml to add repository_dispatch event for classisland_hub_update
1 parent a76e8a5 commit 280d98d

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/deploy.yml

+5-11
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
repository_dispatch:
8+
types: [classisland_hub_update]
79

810
permissions:
911
contents: write
@@ -64,23 +66,15 @@ jobs:
6466
if-no-files-found: error
6567

6668
deploy:
67-
# Add a dependency to the build job
6869
needs: build
69-
70-
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
7170
permissions:
72-
pages: write # to deploy to Pages
73-
id-token: write # to verify the deployment originates from an appropriate source
74-
75-
# Deploy to the github-pages environment
71+
pages: write
72+
id-token: write
7673
environment:
7774
name: github-pages
7875
url: ${{ steps.deployment.outputs.page_url }}
79-
80-
# Specify runner + deployment step
8176
runs-on: ubuntu-latest
8277
steps:
8378
- name: 部署到 GitHub Pages
8479
id: deployment
85-
uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this action
86-
80+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)