Skip to content

Update github/codeql-action action to v4 #1265

Update github/codeql-action action to v4

Update github/codeql-action action to v4 #1265

Workflow file for this run

# build and deploy generator to github pages and to
name: Build and Deploy to GHpages
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_and_deploy:
runs-on: ubuntu-latest
environment: production
name: Build and Deploy
steps:
- uses: actions/checkout@v4
- run: npm i
- run: npm ci
- name: Build for production
run: CI= VITE_PUBLIC_URL=${{ secrets.VITE_PUBLIC_URL }} npm run build
- name: Run tests
run: npm run test
- name: Run frontend tests
run: npm run cypress:ci
- name: Publish
if: github.event_name == 'push'
uses: nogsantos/scp-deploy@v1.3.0
with:
src: ./dist/*
host: ${{ secrets.SSH_HOST }}
remote: ${{ secrets.SSH_DIR }}
port: ${{ secrets.SSH_PORT }}
user: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}