Skip to content

Commit

Permalink
Rewrite GH Action (#11)
Browse files Browse the repository at this point in the history
* syntax issue

* jekyll doing weird things

* let's do this the right way
  • Loading branch information
rambleraptor authored Sep 10, 2024
1 parent de9d3d9 commit 555feeb
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ on:
push:
branches:
- main
workflow_dispatch:
# Recommended by https://github.com/JamesIves/github-pages-deploy-action
permissions:
contents: write
contents: read
pages: write
id-token: write
jobs:
github-pages:
build:
runs-on: ubuntu-latest
container: node:20
steps:
Expand All @@ -29,13 +32,15 @@ jobs:
run: npm install
- name: Generate all static pages.
run: AEP_LOCATION=./aep-dev AEP_LINTER_LOC=./api-linter npm run generate
- name: Build the static site.
run: npm run build
- name: Install rsync for deploy
run: apt-get update && apt-get install -y rsync
- name: Publish the static site to GitHub Pages.
uses: jamesives/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: dist
- name: Install, build, and upload your site output
uses: withastro/action@v2
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 555feeb

Please sign in to comment.