Initial commit #10
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: Zola on GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Publish site | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build and Deploy | |
uses: shalzz/[email protected] | |
env: | |
BUILD_ONLY: true | |
- name: Move Documentation | |
run: | | |
sudo rm -R public/docs/developer/libical | |
sudo mv public/apidocs public/docs/developer/libical | |
sudo rm -R public/docs/developer/libical-glib | |
sudo mv public/libical-glib public/docs/developer/libical-glib | |
- name: Upload Artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
# upload entire directory | |
path: 'public' | |
deploy: | |
permissions: | |
pages: write | |
id-token: write | |
runs-on: ubuntu-latest | |
needs: build | |
environment: | |
name: github-pages | |
url: ${{steps.deployment.outputs.page_url}} | |
steps: | |
- name: Deploy artifact | |
id: deployment | |
uses: actions/deploy-pages@v4 |