Studio 1.2.0 release #8
Workflow file for this run
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: Deploy app to production on published release | |
on: | |
release: | |
types: [published] | |
jobs: | |
build_and_deploy_studio_release: | |
if: ${{ startsWith(github.event.release.tag_name, 'studio') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: npm install | |
- run: npx nx build-with-sentry studio | |
env: | |
VITE_FACEBOOK_CLIENT_ID: ${{ secrets.FACEBOOK_CLIENT_ID }} | |
VITE_GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} | |
VITE_LINKEDIN_CLIENT_ID: ${{ secrets.LINKEDIN_CLIENT_ID }} | |
VITE_GA_STUDIO_ID: ${{ secrets.GA_STUDIO_ID }} | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
VITE_ENV: production | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
id: deploy | |
with: | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_NEWM_STUDIO }}" | |
channelId: live | |
projectId: "${{ secrets.FIREBASE_PROJECT_ID_NEWM_STUDIO }}" | |
target: studio | |
- name: Send update to slack | |
id: slack | |
uses: slackapi/[email protected] | |
with: | |
payload: | | |
{ | |
"text": "NEWM Studio updated in production. View at https://newm.studio." | |
} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} | |
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |