Skip to content

Improved pipeline to start Docker build before static files are created #4

Improved pipeline to start Docker build before static files are created

Improved pipeline to start Docker build before static files are created #4

Workflow file for this run

name: GitHub Pages
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:

Check failure on line 8 in .github/workflows/pages.yml

View workflow run for this annotation

GitHub Actions / GitHub Pages

Invalid workflow file

The workflow is not valid. FlorianLeChat/Homepage/.github/workflows/docker-image.yml@9f434e77774dbbee0b69ec1ae89fa512c35fb8aa (Line: 8, Col: 3): Error calling workflow 'FlorianLeChat/Homepage/.github/workflows/codeql.yml@9f434e77774dbbee0b69ec1ae89fa512c35fb8aa'. The nested job 'analyze' is requesting 'actions: read, security-events: write', but is only allowed 'actions: none, security-events: none'.
- cron: 0 6 * * 1
workflow_dispatch:
permissions:
pages: write
contents: read
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
docker-image:
uses: ./.github/workflows/docker-image.yml
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: [ docker-image ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
- name: Install dependencies
run: npm install
- name: Build website
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4