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 design-system-part2-blog
Browse files Browse the repository at this point in the history
Signed-off-by: Nandhini Devi  <132933318+nandhinidevie@users.noreply.github.com>
  • Loading branch information
nandhinidevie authored Feb 9, 2024
2 parents 7e2f13f + e85900a commit f301bd5
Show file tree
Hide file tree
Showing 2,146 changed files with 153 additions and 387,351 deletions.
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
48 changes: 17 additions & 31 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,44 +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: Get latest commit information
id: get_commit
run: echo "::set-output name=commit_sha::$(git rev-parse HEAD)"
- name: Get raw zipball URL
id: get_zip_url
run: |
echo "::set-output name=zip_url::https://github.com/${{ github.repository }}/archive/${{ steps.get_commit.outputs.commit_sha }}.zip"
- 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/ --zip-url=${{ steps.get_zip_url.outputs.zip_url }}
- 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_branch: vh_page
force_orphan: false
full_commit_message: ${{ github.event.pull_request.head.sha }}
Loading

0 comments on commit f301bd5

Please sign in to comment.