Skip to content

Bump cross-spawn from 7.0.3 to 7.0.6 in /app/app (#19) #8

Bump cross-spawn from 7.0.3 to 7.0.6 in /app/app (#19)

Bump cross-spawn from 7.0.3 to 7.0.6 in /app/app (#19) #8

Workflow file for this run

name: Deploy Astro site to GitHub Pages
on:
# Runs on push events on primary branches
push:
branches:
- main
paths:
- 'app/**'
# Runs on manual triggers
workflow_dispatch:
# Sets permissions for the GITHUB_TOKEN
permissions:
contents: read
# Allow one concurrent deployment
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
# Build job
build:
name: Build Astro site artifact
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build for production
run: docker compose -f docker-compose.yml -f docker-compose.cicd.yml build
- name: Copy application files
run: docker compose -f docker-compose.yml -f docker-compose.cicd.yml run --rm app
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./app/dist
# Deployment job
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
timeout-minutes: 5
# Dependencies
needs:
- build
# Sets permissions for the GITHUB_TOKEN
permissions:
pages: write
id-token: write
# Sets the GitHub Pages deployment
environment:
name: production
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4