Skip to content

Commit

Permalink
dx: add ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SegaraRai committed Oct 28, 2023
1 parent 344812c commit 3cdf1d9
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8

- uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'pnpm'

- name: Install dependencies
run: pnpm i

- name: Check types
run: pnpm nuxt typecheck

- name: Lint code
run: pnpm eslint .

- name: Check code formatting
run: pnpm prettier -c .

- name: Build
run: pnpm run build

- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CF_ACCOUNT_ID }}
apiToken: ${{ secrets.CF_API_TOKEN }}
command: pages deploy --project-name=luonto
workingDirectory: .output/public

0 comments on commit 3cdf1d9

Please sign in to comment.