Merge pull request #424 from Stoccoin-Official/dependabot/npm_and_yar… #17
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 Website | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- name: Install dependencies and build | |
run: | | |
npm install | |
npm run build | |
- name: Deploy to hosting service | |
env: | |
VITE_API_KEY: ${{ secrets.VITE_API_KEY }} | |
VITE_AUTH_DOMAIN: ${{ secrets.VITE_AUTH_DOMAIN }} | |
VITE_PROJECT_ID: ${{ secrets.VITE_PROJECT_ID }} | |
VITE_STORAGE_BUCKET: ${{ secrets.VITE_STORAGE_BUCKET }} | |
VITE_MESSAGING_SENDER_ID: ${{ secrets.VITE_MESSAGING_SENDER_ID }} | |
VITE_APP_ID: ${{ secrets.VITE_APP_ID }} | |
run: | | |
npm run deploy |