Skip to content

Commit

Permalink
static site gen
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesfalkner committed Jul 23, 2024
1 parent 2fc885c commit 8e2dccc
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Publish to GitHub Pages
on:
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: pages
cancel-in-progress: true
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Antora
run: npm i antora
- name: Generate Site
run: npx antora default-site.yml
# run: npx antora content/default-site.yml
- name: Setup Pages
uses: actions/configure-pages@v3
- name: find where the files are
run: |
pwd
#ls -alR .
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: content/www/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 8e2dccc

Please sign in to comment.