fix: use yarn in ci, update lockfile #3
Workflow file for this run
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: Deploy site via Fleek | |
on: push | |
jobs: | |
deploy-to-fleek: | |
runs-on: ubuntu-latest | |
env: | |
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }} | |
FLEEK_PROJECT_ID: ${{ secrets.FLEEK_PROJECT_ID }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install Fleek CLI | |
run: npm i -g @fleek-platform/cli | |
- name: Build & deploy sites using production settings | |
if: github.ref == 'refs/heads/master' | |
run: fleek sites deploy --config fleek-prod.config.json | |
- name: Build & deploy sites using development settings | |
if: github.ref != 'refs/heads/master' | |
run: fleek sites deploy --config fleek-dev.config.json | |