Skip to content

Commit

Permalink
feat: github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
dararod committed Jul 4, 2024
1 parent 25b91c5 commit bb312a5
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy Production
on:
push:
branches:
- 'main'
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: 'main'

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install Dependencies
run: bun i

- name: Build Check
env:
NODE_ENV: production
run: bun run build

- name: Publish to Cloudflare Pages
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
projectName: 'dalejorod-dotcom'
directory: ./dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bb312a5

Please sign in to comment.