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

Commit

Permalink
Merge branch 'main' into links
Browse files Browse the repository at this point in the history
  • Loading branch information
nandhinidevie committed Feb 8, 2024
2 parents 188475c + 3b79a87 commit 32224d7
Show file tree
Hide file tree
Showing 3,402 changed files with 73,942 additions and 387,462 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.packages/** linguist-vendored
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: "daily"
labels:
- "CI/CD"
commit-message:
prefix: ci
19 changes: 19 additions & 0 deletions .github/workflows/clift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy Site

on:
workflow_dispatch:
push:
branches:
- main

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sh -c "$(curl -fsSL https://raw.githubusercontent.com/FifthTry/clift/main/install.sh)"
- run: clift upload fastn.fifthtry.com
43 changes: 18 additions & 25 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,30 @@
name: Deploy Site
name: fastn build to update vh_pages branch

on:
push:
branches: [ main ]
paths:
- '**.ftd'
- '**.md'
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
workflow_call:
env:
CARGO_TERM_COLOR: always

jobs:
build:
fastn-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: FranzDiebold/github-env-vars-action@v2
- name: Checkout code
uses: actions/checkout@v4
- name: Install fastn
id: install_fastn
continue-on-error: false
run: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ftd-lang/fastn/main/install.sh)"
- name: Build the pages with fastn
id: build
continue-on-error: false
run: |
echo "Using '$CI_REPOSITORY_NAME_SLUG/' as the base while building"
fastn build --base=/$CI_REPOSITORY_NAME/
- name: copy CNAME
run: '(test -f CNAME && cp CNAME .build) || echo "CNAME does not exist, skipping step"'
- name: Deploy
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
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.build
publish_dir: ./.build
publish_branch: vh_page
force_orphan: false
full_commit_message: ${{ github.event.pull_request.head.sha }}
Loading

0 comments on commit 32224d7

Please sign in to comment.