Skip to content

refactor: update for new api routes #35

refactor: update for new api routes

refactor: update for new api routes #35

Workflow file for this run

name: Main workflow
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Specific Node.js version 🦄
uses: actions/setup-node@v3
with:
node-version: 20
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Install and Build 📎
env:
BASE_URL: ${{ vars.BASE_URL }}
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: dist-pages
folder: dist
- name: Webhook 📲
uses: wei/curl@master
with:
args: ${{ vars.DEPLOY_WEBHOOK_URL }}?secret=${{ secrets.DEPLOY_WEBHOOK_SECRET }}