Skip to content

Commit

Permalink
ci(gh-pages): switch to actions/deploy-pages@v4 (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter authored Sep 10, 2024
1 parent 171ac95 commit 0e69779
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 30 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy

on:
workflow_dispatch:
push:
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "npm"

- name: Build
run: |
npm ci
npm run build:pages
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "preview/"

- name: Deploy artifact to GitHub Pages
id: deploy
uses: actions/deploy-pages@v4
30 changes: 0 additions & 30 deletions .github/workflows/pages.yml

This file was deleted.

0 comments on commit 0e69779

Please sign in to comment.