Skip to content

Commit

Permalink
Trigger publish of main site from spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
scouten-adobe committed Feb 1, 2024
1 parent ddd8028 commit 4143951
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Trigger site publish"

on:
push:
branches: [main]
workflow_dispatch:

concurrency:
group: github-pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Trigger creator-assertions.github.io publish
uses: actions/github-script@v7
with:
github-token: ${{ secrets.PUBLISH_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'creator-assertions',
repo: 'creator-assertions.github.io',
workflow_id: 'publish.yml',
ref: 'main'
})

0 comments on commit 4143951

Please sign in to comment.