Enable GH tags #336
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 pdidev/pdi | |
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 |