Skip to content

Commit

Permalink
ci: automate deployment (#5)
Browse files Browse the repository at this point in the history
Deploy on push to main
  • Loading branch information
wydengyre authored Jan 26, 2024
1 parent 6270565 commit d365238
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy

on:
workflow_dispatch:
push:
branches:
- main

jobs:
deploy:
timeout-minutes: 2
runs-on: ubuntu-22.04
name: Deploy
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version-file: '.node-version'
cache: 'npm'
- name: Install npm dependencies
run: npm ci
- name: Build podcast lib
run: npm run build-podcast
- name: Deploy
uses: cloudflare/wrangler-action@7c01cc48d88a1f83b4716e0557c168854a9dcdb8 # v3.4.1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}

0 comments on commit d365238

Please sign in to comment.