Skip to content

add deterministic rand, satori not cached #49

add deterministic rand, satori not cached

add deterministic rand, satori not cached #49

name: Deploy to Vercel manually
# Docs example: https://vercel.com/kb/guide/how-can-i-use-github-actions-with-vercel
on:
push:
branches:
- 'main'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- 'disabled-main'
workflow_dispatch:
permissions:
contents: read
env:
# Project vars
# Redundant, vercel pull will define them
# SITE_URL: 'https://nemanjam.vercel.app'
# PLAUSIBLE_DOMAIN: 'nemanjamitic.com'
# PLAUSIBLE_SCRIPT_URL: 'https://plausible.arm1.nemanjamitic.com/js/script.js'
# Vercel vars
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} # user id
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
jobs:
deploy-vercel:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Print commit id and message
run: |
git show -s --format='%h %s'
echo "github.ref -> ${{ github.ref }}"
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 24.13.0
registry-url: 'https://registry.npmjs.org'
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.30.1
- name: Install Vercel CLI
run: pnpm add -g vercel
- name: Pull Vercel production environment variables
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build project using Vercel
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy prebuilt project to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}