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

Commit

Permalink
update gh-pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
balins committed May 22, 2024
1 parent 0ca6e98 commit 1294cee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Deploy docs to GitHub Pages

on:
push:
branches: ['main']
tags: ['v**']

workflow_dispatch:
Expand All @@ -17,7 +16,7 @@ permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: 'pages'

jobs:
deploy:
Expand All @@ -39,11 +38,14 @@ jobs:
npm run docs
- name: Deploy
if: startsWith(github.ref, 'refs/tags/v')
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs
destination_dir: ${{ github.ref_name }}
user_name: 'GitHub Actions'
user_email: '41898282+github-actions[bot]@users.noreply.github.com'

- name: Deploy for the latest release
if: startsWith(github.ref, 'refs/tags/v') || inputs.set-latest
Expand All @@ -52,3 +54,5 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs
destination_dir: latest
user_name: 'GitHub Actions'
user_email: '41898282+github-actions[bot]@users.noreply.github.com'

0 comments on commit 1294cee

Please sign in to comment.