diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e92d419 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.gitignore b/.gitignore index 895c4f8..b2bb6c7 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/bun.lockb b/bun.lockb index c71bdf0..3735c4d 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index a8a1674..27346ab 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/vercel.json b/vercel.json index 6680d5b..764a2fe 100644 --- a/vercel.json +++ b/vercel.json @@ -1,6 +1,11 @@ { + "git": { + "deploymentEnabled": { + "main": false + } + }, "crons": [{ "path": "/api/update-playlists", "schedule": "0 5 * * *" }] -} \ No newline at end of file +}