Merge pull request #33 from epics-extensions/phoebus-save-and-restore… #19
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: "Book GitHub Pages" | |
on: | |
# Allows running this workflow manually | |
workflow_dispatch: | |
push: | |
branches: [master] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
# Only one concurrent deployment | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
- name: "Build documentation book" | |
run: | | |
nix build '.#book' --print-build-logs | |
cp -Lr --no-preserve=mode,ownership ./result/ ./book | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: './book' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |