Skip to content

Commit

Permalink
🆙 updated stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tgel0 committed Feb 11, 2024
1 parent ea1463e commit 1370d9a
Show file tree
Hide file tree
Showing 3 changed files with 1,164 additions and 1,396 deletions.
35 changes: 12 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,35 @@ env:

jobs:
build:
name: Build Firebase Functions
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Checkout Repo
uses: actions/checkout@master
- name: Install Dependencies
run: npm ci --no-audit
working-directory: ${{ env.RESOURCE_DIR }}

run: npm install
- name: Build
run: npm run build
working-directory: ${{ env.RESOURCE_DIR }}

run: npm run build-prod
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: ${{ env.RESOURCE_DIR }}
path: ${{ env.RESOURCE_DIR }}
name: dist
path: dist

deploy:
name: Deploy Firebase Functions
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Install Dependencies
run: npm ci --no-audit
working-directory: ${{ env.RESOURCE_DIR }}

uses: actions/checkout@master
- name: Download Artifact
uses: actions/download-artifact@master
with:
name: ${{ env.RESOURCE_DIR }}
path: ${{ env.RESOURCE_DIR }}

name: dist
path: dist
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
uses: docker://w9jds/firebase-action:master
with:
args: functions:config:set sheets.api_key=${{ secrets.API_KEY }} sheets.measurement_id=${{ secrets.MEASURE_ID }} sheets.api_secret=${{ secrets.API_SECRET }} sheets.client_id=${{ secrets.CLIENT_ID }}; firebase deploy --only functions --force
env:
Expand Down
Loading

0 comments on commit 1370d9a

Please sign in to comment.