Skip to content

[MRKT-34, MRKT-35]: fetch API data for sale songs by artist and similar songs #135

[MRKT-34, MRKT-35]: fetch API data for sale songs by artist and similar songs

[MRKT-34, MRKT-35]: fetch API data for sale songs by artist and similar songs #135

name: Deploy NEWM Marketplace to Firebase Hosting on PR
on:
pull_request:
paths:
- .github/workflows/firebase-hosting-pull-request-newm-marketplace.yml
- apps/marketplace/**
- packages/**
jobs:
build_and_preview:
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- run: npm install
- run: npx nx build marketplace
env:
NEXT_PUBLIC_APPLE_CLIENT_ID: ${{ secrets.APPLE_CLIENT_ID }}
NEXT_PUBLIC_GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
NEXT_PUBLIC_GA_STUDIO_ID: ${{ secrets.GA_STUDIO_ID }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
NEXT_PUBLIC_ENV: staging
- uses: FirebaseExtended/action-hosting-deploy@v0
id: deploy
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_NEWM_ARTIST_PORTAL }}"
projectId: "${{ secrets.FIREBASE_PROJECT_ID_NEWM_ARTIST_PORTAL }}"
target: marketplace
expires: 30d