Skip to content

Commit 1ecb437

Browse files
committed
Switch from custom action to built-in GitHub recommended actions
1 parent be7b056 commit 1ecb437

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/publish.yaml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: CI
3+
name: Publish
44

55
on:
66
push:
@@ -40,11 +40,19 @@ jobs:
4040
- name: Build website
4141
run: npm run build
4242

43-
# Copied from https://github.com/stacklok/minder/blob/main/.github/workflows/deploy-doc.yaml
4443
- name: Deploy to GitHub Pages
45-
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
44+
uses: actions/upload-pages-artifact@v3
4645
with:
47-
github_token: ${{ secrets.GITHUB_TOKEN }}
48-
# Build output to publish to the `gh-pages` branch:
49-
publish_dir: ./docs/build
50-
# cname: mindersec.github.io
46+
path: ./docs/build
47+
deploy:
48+
name: Deploy
49+
runs-on: ubuntu-latest
50+
needs: build
51+
52+
permissions:
53+
id-token: write
54+
pages: write
55+
56+
steps:
57+
- name: Deploy to GitHub Pages
58+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)