1.7.38 #477
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
name: Release Build | |
on: | |
push: | |
branches: | |
- "release/**" | |
env: | |
# Creates and uploads sourcemaps to Rollbar, and save the built extension as an artifact | |
PUBLIC_RELEASE: true | |
jobs: | |
build-for-store: | |
runs-on: ubuntu-latest | |
env: | |
SOURCE_MAP_URL_BASE: https://pixiebrix-extension-source-maps.s3.amazonaws.com | |
SOURCE_MAP_PATH: sourcemaps/${{ github.job }}/${{ github.sha }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
cache: npm | |
- run: npm ci | |
- run: npm run build | |
env: | |
GOOGLE_APP_ID: ${{ secrets.GOOGLE_APP_ID }} | |
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | |
GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.GOOGLE_OAUTH_CLIENT_ID }} | |
ROLLBAR_BROWSER_ACCESS_TOKEN: ${{ secrets.ROLLBAR_BROWSER_ACCESS_TOKEN }} | |
ROLLBAR_POST_SERVER_ITEM_TOKEN: ${{ secrets.ROLLBAR_POST_SERVER_ITEM_TOKEN }} | |
DATADOG_APPLICATION_ID: ${{ secrets.DATADOG_APPLICATION_ID }} | |
DATADOG_CLIENT_TOKEN: ${{ secrets.DATADOG_CLIENT_TOKEN }} | |
- run: bash scripts/upload-sourcemaps.sh | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.SOURCEMAP_USER_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.SOURCEMAP_USER_KEY }} | |
AWS_DEFAULT_REGION: "us-east-2" | |
ROLLBAR_POST_SERVER_ITEM_TOKEN: ${{ secrets.ROLLBAR_POST_SERVER_ITEM_TOKEN }} | |
- name: Save extension | |
uses: ./.github/actions/upload-zipped-artifact | |
with: | |
name: build-for-store | |
directory: dist | |
exclusions: "*.map" | |
retention-days: 5 | |
build: | |
runs-on: ubuntu-latest | |
env: | |
SOURCE_MAP_URL_BASE: https://pixiebrix-extension-source-maps.s3.amazonaws.com | |
SOURCE_MAP_PATH: sourcemaps/${{ github.job }}/${{ github.sha }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
cache: npm | |
- run: npm ci | |
- run: npm run build | |
env: | |
GOOGLE_APP_ID: ${{ secrets.GOOGLE_APP_ID }} | |
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | |
GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.GOOGLE_OAUTH_CLIENT_ID }} | |
ROLLBAR_BROWSER_ACCESS_TOKEN: ${{ secrets.ROLLBAR_BROWSER_ACCESS_TOKEN }} | |
ROLLBAR_POST_SERVER_ITEM_TOKEN: ${{ secrets.ROLLBAR_POST_SERVER_ITEM_TOKEN }} | |
CHROME_MANIFEST_KEY: ${{ secrets.CHROME_MANIFEST_PROD_PUBLIC_KEY }} | |
DATADOG_APPLICATION_ID: ${{ secrets.DATADOG_APPLICATION_ID }} | |
DATADOG_CLIENT_TOKEN: ${{ secrets.DATADOG_CLIENT_TOKEN }} | |
- run: bash scripts/upload-sourcemaps.sh | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.SOURCEMAP_USER_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.SOURCEMAP_USER_KEY }} | |
AWS_DEFAULT_REGION: "us-east-2" | |
ROLLBAR_POST_SERVER_ITEM_TOKEN: ${{ secrets.ROLLBAR_POST_SERVER_ITEM_TOKEN }} | |
- name: Save extension | |
uses: ./.github/actions/upload-zipped-artifact | |
with: | |
name: build-production | |
directory: dist | |
exclusions: "*.map" | |
retention-days: 5 | |
- name: Slack Notification | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
SLACK_CHANNEL: "release" | |
SLACK_MESSAGE: "Chrome release build succeeded :rocket:" |