Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
simplify the github pages ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
IMax153 committed Nov 10, 2023
1 parent d8198a5 commit 8b7ba86
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ concurrency:
cancel-in-progress: true

jobs:
generate:
name: Generate
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -24,19 +24,14 @@ jobs:
with:
cachixAuthToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: pnpm docgen

build:
name: Build
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: generate
steps:
- name: Build pages Jekyll
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/jekyll-build-pages@v1
with:
source: ./docs
destination: ./_site
- name: Upload pages artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v2

deploy:
Expand Down

0 comments on commit 8b7ba86

Please sign in to comment.