Skip to content

Commit

Permalink
Switch from custom action to built-in GitHub recommended actions
Browse files Browse the repository at this point in the history
  • Loading branch information
evankanderson committed Oct 11, 2024
1 parent be7b056 commit 1ecb437
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: CI
name: Publish

on:
push:
Expand Down Expand Up @@ -40,11 +40,19 @@ jobs:
- name: Build website
run: npm run build

# Copied from https://github.com/stacklok/minder/blob/main/.github/workflows/deploy-doc.yaml
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./docs/build
# cname: mindersec.github.io
path: ./docs/build
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build

permissions:
id-token: write
pages: write

steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4

0 comments on commit 1ecb437

Please sign in to comment.