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

Commit

Permalink
run only fastn build for open prs
Browse files Browse the repository at this point in the history
  • Loading branch information
harshdoesdev committed Jan 27, 2024
1 parent e1bb853 commit 69d3a59
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: fastn build to update vh_pages branch

on:
push:
branches: [ main ]
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
Expand All @@ -11,13 +15,15 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Fastn
- name: Install fastn
run: source <(curl -fsSL https://fastn.com/install.sh)
- name: Build pages with Fastn
- name: Build pages with fastn
run: fastn build --offline
- name: Deploy to vh_page branch
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.build
publish_branch: vh_page
full_commit_message: ${{ github.event.pull_request.head.sha }}

0 comments on commit 69d3a59

Please sign in to comment.