This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
design-system-part-2-blog #54
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: fastn build to update vh_pages branch | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
fastn-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install fastn | |
run: source <(curl -fsSL https://fastn.com/install.sh) | |
- 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 | |
force_orphan: false | |
full_commit_message: ${{ github.event.pull_request.head.sha }} |