Skip to content

Commit

Permalink
Try authoritative GHAs instead of peaceiris
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-mayrgundter committed Apr 21, 2024
1 parent 92e1cd9 commit 49a0afd
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,27 @@ on:
- main

jobs:
build-and-deploy:
build:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4

- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install deps
run: npm install

- name: Build site serving directory (/docs)
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
- uses: actions/checkout@v4
- uses: actions/configure-pages@v3
id: pages
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install deps
run: npm install
- name: Build site serving directory (/docs)
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
deploy:
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/deploy-pages@v2
id: deployment

0 comments on commit 49a0afd

Please sign in to comment.