Skip to content

Move site generation to a script #331

Move site generation to a script

Move site generation to a script #331

Workflow file for this run

name: Deploy
on:
repository_dispatch: ~
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
steps:
- name: Checkout master
uses: actions/checkout@v4
- name: Build site
env:
CI_PAGES_TOKEN: ${{secrets.CI_PAGES_TOKEN}}
run: |
./generate _site https://gitlab.maisondelasimulation.fr pdidev%2Fpdi
find data -mindepth 1 -maxdepth 1 -exec cp -r '{}' _site ';'
./gen_sitemap _site
- name: Upload page artifact
uses: actions/upload-pages-artifact@v3
publish:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4