Skip to content

Merge pull request #50 from nerometa/ng-path #54

Merge pull request #50 from nerometa/ng-path

Merge pull request #50 from nerometa/ng-path #54

# Sample workflow for building and deploying a VitePress site to GitHub Pages
#
name: Deploy VitePress site to Pages
on:
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
# using the `master` branch as the default branch.
push:
branches: [main]
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Not needed if lastUpdated is not enabled
- uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
- name: Install dependencies
run: bun install
- name: Build with VitePress
run: bun run docs:build
- name: Publish to Cloudflare
id: deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
command: pages deploy .vitepress/dist --project-name=tpa-roadmap
- name: print deployment-url
env:
DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }}
run: echo $DEPLOYMENT_URL