Merge pull request #50 from nerometa/ng-path #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: [develop] | |
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-dev | |
- name: print deployment-url | |
env: | |
DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }} | |
run: echo $DEPLOYMENT_URL |