MRKT-46: Update Marketplace logo (#620) #97
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 NEWM Studio to Firebase Hosting on merge | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- .github/workflows/firebase-hosting-merge-deploy-newm-studio.yml | |
- apps/studio/** | |
- packages/** | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: npm install | |
- run: npx nx build-with-sentry studio | |
env: | |
VITE_APPLE_CLIENT_ID: ${{ secrets.APPLE_CLIENT_ID }} | |
VITE_GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} | |
VITE_GA_STUDIO_ID: ${{ secrets.GA_STUDIO_ID }} | |
VITE_RECAPTCHA_SITE_KEY_STAGING: ${{ secrets.RECAPTCHA_SITE_KEY_STAGING }} | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
VITE_ENV: staging | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
id: deploy | |
with: | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_NEWM_ARTIST_PORTAL }}" | |
channelId: live | |
projectId: "${{ secrets.FIREBASE_PROJECT_ID_NEWM_ARTIST_PORTAL }}" | |
target: studio | |
- name: Send update to slack | |
id: slack | |
uses: slackapi/[email protected] | |
with: | |
payload: | | |
{ | |
"text": "NEWM Studio updated in staging. View at https://artist.garage.newm.io." | |
} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NEWM_STUDIO_WEBHOOK }} | |
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |