Skip to content

Commit

Permalink
deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela committed Apr 19, 2024
1 parent 4189d6b commit 32d7448
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ on:
pull_request: {}
push:
branches: ["main"]

jobs:
tests:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -33,3 +34,22 @@ jobs:
- name: test
run: npm run test-all

deploy:
runs-on: ubuntu-latest
name: Deploy
if: github.ref == 'refs/heads/main'
steps:
- name: checkout
uses: actions/checkout@v4

- name: setup node
uses: actions/setup-node@v4
with:
node-version: 21
cache: "npm"

- name: deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}

0 comments on commit 32d7448

Please sign in to comment.