webapp/.gitea/workflows/main.yml
Untone 29738ad34a
Some checks failed
deploy / test (push) Failing after 59s
deploy / deploy (push) Has been skipped
ci+https-fix
2023-11-28 23:02:28 +03:00

42 lines
823 B
YAML

name: 'deploy'
on:
push:
branches:
- main
- feature/sse-connect
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run check
deploy:
runs-on: ubuntu-latest
needs: test
steps:
- name: Cloning repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Vercel CLI
run: npm install -g vercel && vercel --version
- name: Deploy to Vercel
run: vercel --prod --scope=VERCEL_PROJECT_ID
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}