Skip to content

Commit

Permalink
Update deploy.yml to add repository_dispatch event for classisland_hu…
Browse files Browse the repository at this point in the history
…b_update
  • Loading branch information
hello8693 committed Oct 7, 2024
1 parent a76e8a5 commit 280d98d
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
repository_dispatch:
types: [classisland_hub_update]

permissions:
contents: write
Expand Down Expand Up @@ -64,23 +66,15 @@ jobs:
if-no-files-found: error

deploy:
# Add a dependency to the build job
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: 部署到 GitHub Pages
id: deployment
uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this action

uses: actions/deploy-pages@v2

0 comments on commit 280d98d

Please sign in to comment.