Skip to content

...

... #322

Workflow file for this run

name: Deploy
on:
repository_dispatch: ~
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v4
- name: Clean previous
run: |
export CI_PAGES_TOKEN="${{secrets.GITHUB_TOKEN}}"
./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
if: "github.event_name != 'pull_request'"
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4