Some checks failed
Build and Deploy / build_and_deploy (push) Failing after 30s
32 lines
776 B
YAML
32 lines
776 B
YAML
name: Build and Deploy
|
|
on: [push]
|
|
|
|
jobs:
|
|
build_and_deploy:
|
|
runs-on: docker
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
|
|
- name: Clean
|
|
run: npm run clean
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build the website
|
|
env:
|
|
DARK_VISITORS_ACCESS_TOKEN: "${{ secrets.DARK_VISITORS_ACCESS_TOKEN }}"
|
|
URL: "${{ secrets.URL }}"
|
|
run: npm run build
|
|
|
|
- name: Upload build
|
|
env:
|
|
BUNNY_ACCESS_KEY: "${{ secrets.BUNNY_ACCESS_KEY }}"
|
|
BUNNY_STORAGE_ZONE_NAME: "${{ secrets.BUNNY_STORAGE_ZONE_NAME }}"
|
|
run: npm run upload
|