Skip to content

Commit

Permalink
ci(website): trigger publish workflow dispatch (#698)
Browse files Browse the repository at this point in the history
* ci(debug): trigger workflow dispatch

* ci: remove realease step

* ci: revert debug

* ci: revert debug
  • Loading branch information
wellwelwel authored Aug 20, 2024
1 parent fcd3a68 commit 0c51248
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/cd_docs-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: '🚀 CD (Website) — Publish'

on:
push:
branches:
- main
paths:
- 'website/**'
workflow_dispatch:

jobs:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/cd_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,15 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --provenance

- name: 🔗 Triggering — Website Publish
if: ${{ steps.release.outputs.releases_created }}
uses: actions/github-script@v7
with:
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'cd_docs-deploy.yml',
ref: 'main'
});

0 comments on commit 0c51248

Please sign in to comment.