Merge pull request #303 from mstable/feat/add-insurance-links-to-trad… #56
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: lts Dev | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'apps/lts/**' | |
- 'libs/lts/**' | |
- 'libs/shared/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
jobs: | |
build_and_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout [main] | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
name: Setup node | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- name: Install jq | |
run: | | |
sudo apt-get update | |
sudo apt-get install jq | |
- run: yarn install --frozen-lockfile | |
name: Install dependencies | |
- name: Build | |
env: | |
alchemyMain: ${{ secrets.ALCHEMY_FALLBACK_API_KEY }} | |
alchemyFallback: ${{ secrets.ALCHEMY_FALLBACK_API_KEY }} | |
run: NX_ALCHEMY_MAIN_API_KEY=$alchemyMain NX_ALCHEMY_FALLBACK_API_KEY=$alchemyFallback yarn nx build lts | |
- name: Copy Firebase LTS to Firebase | |
run: cp firebase.lts.json firebase.json | |
- name: Firebase deploy | |
uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_APPS_LTS }}' | |
expires: 30d | |
projectId: apps-lts | |
channelId: dev | |
# - name: Discord notification | |
# env: | |
# DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
# uses: Ilshidur/[email protected] | |
# with: | |
# args: "✨ New DEV version of LTS 🚀 Deploy url: https://apps-lts--dev-vite2x32.web.app/" |