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
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
harshdoesdev marked this conversation as resolved.
Show resolved Hide resolved
labels:
- "CI/CD"
commit-message:
prefix: ci
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@v4
- 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: false
full_commit_message: ${{ github.event.pull_request.head.sha }}