Skip to content

Commit

Permalink
Forward token to workflows (#85)
Browse files Browse the repository at this point in the history
* Forward token to workflows

* Add SEGMENT_PRODUCTION_WRITE_KEY
  • Loading branch information
Mrtenz authored Sep 11, 2023
1 parent b2956b8 commit b6e43a0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,5 @@ jobs:
slack-subteam: S042S7RE4AE # @metamask-npm-publishers
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
PUBLISH_PAGES_TOKEN: ${{ secrets.PUBLISH_PAGES_TOKEN }}
SEGMENT_PRODUCTION_WRITE_KEY: ${{ secrets.SEGMENT_PRODUCTION_WRITE_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ on:
secrets:
SLACK_WEBHOOK_URL:
required: false
PUBLISH_PAGES_TOKEN:
required: true
SEGMENT_PRODUCTION_WRITE_KEY:
required: true

jobs:
announce-release:
Expand Down Expand Up @@ -92,3 +96,6 @@ jobs:
uses: ./.github/workflows/publish-site.yml
with:
destination_dir: .
secrets:
PUBLISH_PAGES_TOKEN: ${{ secrets.PUBLISH_PAGES_TOKEN }}
SEGMENT_PRODUCTION_WRITE_KEY: ${{ secrets.SEGMENT_PRODUCTION_WRITE_KEY }}
5 changes: 5 additions & 0 deletions .github/workflows/publish-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
ref:
required: false
type: string
secrets:
PUBLISH_PAGES_TOKEN:
required: true
SEGMENT_PRODUCTION_WRITE_KEY:
required: true

jobs:
publish-site-to-gh-pages:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/republish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,6 @@ jobs:
with:
destination_dir: .
ref: ${{ needs.get-release-tag.outputs.tag }}
secrets:
PUBLISH_PAGES_TOKEN: ${{ secrets.PUBLISH_PAGES_TOKEN }}
SEGMENT_PRODUCTION_WRITE_KEY: ${{ secrets.SEGMENT_PRODUCTION_WRITE_KEY }}

0 comments on commit b6e43a0

Please sign in to comment.