update sdk #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
name: Build and Deploy nopwd website | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout Repository | |
uses: actions/checkout@main | |
- name: ⬇️ Installing dependencies | |
run: npm i | |
- name: ⬇️ Building nopwd website | |
run: npm run build | |
- name: 📥 Installing firebase command tool | |
run: sudo npm install -g firebase-tools | |
- name: 🤫 building glcoud credential.json | |
run: echo ${{ secrets.DEPLOYMENT_KEY }} | base64 --decode > ./credential.json | |
- name: 📦 deploy nopwd.rocks | |
run: | | |
firebase use --add nopwdio | |
firebase target:apply hosting rocks nopwd-rocks | |
firebase deploy --only hosting:rocks | |
env: | |
GOOGLE_APPLICATION_CREDENTIALS: ./credential.json | |
- name: 🤫 removing credential.json | |
run: rm ./credential.json |