Update Sui.tsx #26
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
# This file was auto-generated by the Firebase CLI | |
# https://github.com/firebase/firebase-tools | |
name: Deploy to Firebase Hosting on merge | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci && npm run build | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: ${{ secrets.GITHUB_TOKEN }} | |
firebaseServiceAccount: ${{ secrets.FIREBASE_HOSTING }} | |
channelId: live | |
projectId: slsa-on-blockchain | |
- uses: google-github-actions/auth@v2 | |
with: | |
project_id: slsa-on-blockchain | |
credentials_json: ${{ secrets.FIREBASE_FUNCTIONS }} | |
- run: | | |
echo "${{ secrets.FIREBASE_APP_BASE64 }}" | base64 --decode > ./functions/src/serviceAccountKey.json | |
- name: Deploy upload function | |
uses: google-github-actions/deploy-cloud-functions@v3 | |
with: | |
name: upload | |
runtime: nodejs20 | |
source_dir: ./functions | |
entry_point: upload | |
- name: Deploy download function | |
uses: google-github-actions/deploy-cloud-functions@v3 | |
with: | |
name: download | |
runtime: nodejs20 | |
source_dir: ./functions | |
entry_point: download | |
- name: Deploy create function | |
uses: google-github-actions/deploy-cloud-functions@v3 | |
with: | |
name: create | |
runtime: nodejs20 | |
source_dir: ./functions | |
entry_point: create | |
- name: Deploy update function | |
uses: google-github-actions/deploy-cloud-functions@v3 | |
with: | |
name: update | |
runtime: nodejs20 | |
source_dir: ./functions | |
entry_point: update | |
- name: Deploy read function | |
uses: google-github-actions/deploy-cloud-functions@v3 | |
with: | |
name: read | |
runtime: nodejs20 | |
source_dir: ./functions | |
entry_point: read | |
- name: Deploy fetch function | |
uses: google-github-actions/deploy-cloud-functions@v3 | |
with: | |
name: fetch | |
runtime: nodejs20 | |
source_dir: ./functions | |
entry_point: fetch | |
- name: Deploy deleteOldData function | |
uses: google-github-actions/deploy-cloud-functions@v3 | |
with: | |
name: deleteOldData | |
runtime: nodejs20 | |
source_dir: ./functions | |
entry_point: deleteOldData |