website/.gitea/workflows/deploy.yml
enricobuehler 65cf321781
All checks were successful
Deploy to Netlify / deploy (push) Successful in 59s
add ci
2025-05-22 17:54:49 +02:00

46 lines
1.1 KiB
YAML

name: Deploy to Netlify
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Repository Checkout
uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-${{ matrix.bun }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-${{ matrix.bun }}-bun-
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
env:
UNOM_PKGS_TOKEN: ${{ secrets.UNOM_PKGS_TOKEN }}
- name: Build
run: bun run build
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v2
with:
publish-dir: './dist'
production-branch: main
deploy-message: "Deploy from Gitea Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 10