Skip to content

Commit

Permalink
Merge pull request #19 from bklaing2/dev
Browse files Browse the repository at this point in the history
setup GitHub action to only deploy on release
  • Loading branch information
bklaing2 authored Jun 27, 2024
2 parents 53ea908 + 3a54d53 commit ad73e34
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Production Tag Deployment

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

on:
push:
# Pattern matched against refs/tags
tags:
- '*' # Push events to every tag not containing /
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Vercel CLI
run: npm install --global vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ vite.config.js.timestamp-*
vite.config.ts.timestamp-*
.svelte-kit
/supabase
/.vercel
playlist image jpeg 64.txt
playlist image png 64.txt
*.xcf
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"unplugin-icons": "^0.17.4",
"vercel": "^34.2.8",
"vite": "^4.4.2"
},
"type": "module",
Expand Down
7 changes: 6 additions & 1 deletion vercel.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"git": {
"deploymentEnabled": {
"main": false
}
},
"crons": [{
"path": "/api/update-playlists",
"schedule": "0 5 * * *"
}]
}
}

0 comments on commit ad73e34

Please sign in to comment.