Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 3a0e53f

Browse files
authored
Switch to new Actions-based Pages deploys
1 parent 47c0f09 commit 3a0e53f

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

.github/workflows/cd.yaml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
name: CD
22
on:
33
push:
4+
permissions:
5+
pages: write
6+
id-token: write
47
concurrency:
58
group: cd-${{ github.ref }}
69
cancel-in-progress: false
710
jobs:
8-
cd:
11+
build:
912
runs-on: ubuntu-latest
1013
steps:
1114
- name: Checkout
@@ -18,12 +21,18 @@ jobs:
1821
run: npm ci
1922
- name: Antora build
2023
run: npx antora ./antora-playbook.yml
21-
- name: Disable Jekyll
22-
run: touch .nojekyll
23-
- name: Publish to GitHub Pages
24-
if: github.ref == 'refs/heads/main'
25-
uses: peaceiris/actions-gh-pages@v3
24+
- name: Upload Pages artifact
25+
uses: actions/upload-pages-artifact@v1
2626
with:
27-
github_token: ${{ secrets.GITHUB_TOKEN }}
28-
publish_dir: build/site
29-
cname: clojurephant.dev
27+
path: build/site
28+
deploy:
29+
if: github.ref == 'refs/heads/main'
30+
needs: [build]
31+
runs-on: ubuntu-latest
32+
environment:
33+
name: github-pages
34+
url: ${{ steps.deployment.outputs.page_url }}
35+
steps:
36+
- name: Deploy Pages
37+
id: deployment
38+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)