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

Update deploy.yml and added dependabot.yml #549

Merged
merged 9 commits into from
Jan 27, 2024
21 changes: 18 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,29 @@ name: fastn build to update vh_pages branch

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

jobs:
fastn-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
harshdoesdev marked this conversation as resolved.
Show resolved Hide resolved
- name: Install fastn
run: source <(curl -fsSL https://fastn.com/install.sh)
- name: Build the pages with fastn
run: fastn build
- 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: true
harshdoesdev marked this conversation as resolved.
Show resolved Hide resolved
full_commit_message: ${{ github.event.pull_request.head.sha }}
Loading