-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
087a7d0
commit c59e9fe
Showing
16 changed files
with
452 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: publish-release | ||
|
||
on: workflow_dispatch | ||
|
||
env: | ||
PROPELDATA_CI_TOKEN: ${{ secrets.PROPELDATA_CI_TOKEN }} | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Setup | ||
- uses: actions/checkout@v3 | ||
with: | ||
# so that when we push tags, workflows are released, which does not happen with the default token | ||
token: ${{ secrets.PROPELDATA_CI_TOKEN }} | ||
# NOTE(mroberts): https://github.com/actions/checkout/issues/217 | ||
fetch-depth: '0' | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: propeldata/actions | ||
token: ${{ secrets.PROPELDATA_CI_TOKEN }} | ||
path: actions | ||
- uses: ./actions/propel-slack | ||
with: | ||
slack_token: ${{ secrets.SLACK_TOKEN }} | ||
slack_signing_secret: ${{ secrets.SLACK_SIGNING_SECRET }} | ||
message_type: 'pipeline' | ||
- uses: ./actions/propel-slack | ||
with: | ||
slack_token: ${{ secrets.SLACK_TOKEN }} | ||
slack_signing_secret: ${{ secrets.SLACK_SIGNING_SECRET }} | ||
message_type: 'publish' | ||
|
||
# Build | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.13.0' | ||
- uses: ./actions/propel-slack | ||
with: | ||
slack_token: ${{ secrets.SLACK_TOKEN }} | ||
slack_signing_secret: ${{ secrets.SLACK_SIGNING_SECRET }} | ||
message_type: 'build' | ||
- uses: ./.github/actions/prepare | ||
with: | ||
cache_fresh_start: 'true' | ||
- run: yarn build | ||
|
||
# Release | ||
- run: | | ||
yarn config set -H 'npmAuthToken' "${{secrets.NPM_TOKEN}}" | ||
git config --global user.email "engineering@propeldata.com" | ||
git config --global user.name "Propel Data Cloud, Inc." | ||
COMMIT_MESSAGE=release yarn release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.