Skip to content

chore: move to younsl/cnck-blog with cnck.tech custom domain #4

chore: move to younsl/cnck-blog with cnck.tech custom domain

chore: move to younsl/cnck-blog with cnck.tech custom domain #4

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
# Allow the workflow to publish to GitHub Pages via OIDC.
permissions:
contents: read
pages: write
id-token: write
# One deploy at a time; let an in-flight production deploy finish.
concurrency:
group: pages
cancel-in-progress: false
env:
ZOLA_VERSION: "0.22.1"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure Pages
id: pages
uses: actions/configure-pages@v5
- name: Install Zola
run: |
curl -sSfL "https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz" \
| tar -xz -C /usr/local/bin zola
zola --version
- name: Build
# Override base_url with the URL resolved by configure-pages so the
# same source builds correctly regardless of the Pages domain.
run: zola build --base-url "$PAGES_BASE_URL"
env:
PAGES_BASE_URL: ${{ steps.pages.outputs.base_url }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: public
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4