Skip to content
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ jobs:
uses: ./.github/workflows/publish-release.yml
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
3 changes: 3 additions & 0 deletions .github/workflows/publish-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
destination_dir:
required: true
type: string
secrets:
DEPLOY_TOKEN:
required: true

jobs:
publish-to-gh-pages:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish-main-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
publish-to-gh-pages:
name: Publish build to `latest` directory of `gh-pages` branch
uses: ./.github/workflows/publish-gh-pages.yml
secrets: inherit
with:
destination_dir: latest
secrets:
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
3 changes: 2 additions & 1 deletion .github/workflows/publish-rc-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
publish-to-gh-pages:
name: Publish build to `rc-${{ needs.get-release-version.outputs.release-version }}` directory of `gh-pages` branch
uses: ./.github/workflows/publish-gh-pages.yml
secrets: inherit
needs: get-release-version
with:
destination_dir: rc-${{ needs.get-release-version.outputs.release-version }}
secrets:
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
4 changes: 4 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
secrets:
NPM_TOKEN:
required: true
DEPLOY_TOKEN:
required: true

jobs:
publish-release:
Expand Down Expand Up @@ -99,3 +101,5 @@ jobs:
uses: ./.github/workflows/publish-gh-pages.yml
with:
destination_dir: v${{ needs.get-release-version.outputs.RELEASE_VERSION }}
secrets:
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
Loading