Skip to content

Commit

Permalink
build manual in PRs too
Browse files Browse the repository at this point in the history
  • Loading branch information
ibizaman committed Oct 24, 2024
1 parent b141ccc commit 5c9a806
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@
name: Deploy docs

on:
# Runs on pushes targeting the default branch
pull_request:
push:
branches: ["main"]
# TODO: needed ?
# schedule:
# - cron: 0 0 * * 1

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand Down Expand Up @@ -63,12 +58,15 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v3
if: success() && github.ref == 'refs/heads/main'

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
if: success() && github.ref == 'refs/heads/main'
with:
path: ./public

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
if: success() && github.ref == 'refs/heads/main'

0 comments on commit 5c9a806

Please sign in to comment.