Skip to content

Update dependency ubuntu to v24 #165

Update dependency ubuntu to v24

Update dependency ubuntu to v24 #165

Workflow file for this run

name: Build and push
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
permissions:
deployments: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Build site
run: bun run build
- name: Publish to Cloudflare Pages
id: cloudflare-publish
if: ${{ !env.ACT }}
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 8e782a355544971b192db9e75d789dca
projectName: 9kdotfiles
directory: .vitepress/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
- uses: mshick/add-pr-comment@v2
if: ${{ !env.ACT }}
with:
message: |
🚀 This branch can be previewed at ${{ steps.cloudflare-publish.outputs.url }}