Skip to content

Commit

Permalink
Push github actions cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
phisn committed Apr 24, 2024
1 parent 1f53f1f commit a2273ef
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI/CD
on: [push]

jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Instal Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install Yarn
run: npm install -g yarn

- name: Install protoc
uses: arduino/[email protected]

- name: Install dependencies
run: yarn

- name: Build frontend
run: yarn build

- name: Deploy
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: polyburn
directory: ./packages/web/dist

0 comments on commit a2273ef

Please sign in to comment.