Skip to content

enhanced logging typed #74

enhanced logging typed

enhanced logging typed #74

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true
#Allow repo secrets
env:
VITE_BACKEND_URL: "https://web-production-4659.up.railway.app/"
VITE_WEATHER_API_KEY: ${{ secrets.VITE_WEATHER_API_KEY }}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: './client/package-lock.json'
- name: Install dependencies
run: npm ci
working-directory: './client'
- name: Build
run: npm run build
working-directory: './client'
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload dist folder
path: './client/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4