fix(ci): Image tag #45
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: CI | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
# Allow only one concurrent deployment | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
# Define a job to generate the site content | |
# * Uses Zola CLI to generate public dir | |
# * Bundles site into zipped artifact | |
generate-site: | |
runs-on: ubuntu-latest | |
container: | |
image: "ghcr.io/getzola/zola:v0.18.0" | |
options: --entrypoint=sh | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Generate site content | |
run: zola build | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: 'public' | |
# Define a job to deploy the static files | |
deploy: | |
runs-on: ubuntu-latest | |
needs: generate-site | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |