Skip to content

Use sections

Use sections #140

Workflow file for this run

name: Build and deploy site
on:
push:
branchs:
- 'main'
paths:
- 'links.json'
- '.github/workflows/build.yml'
- 'CNAME'
- 'img/*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: davorg/links:latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Create page
run: linksite
- name: Build pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: docs/
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4