feat: build and deploy with netlify
Some checks failed
Build and deploy / lint (push) Failing after 1m5s
Some checks failed
Build and deploy / lint (push) Failing after 1m5s
This commit is contained in:
parent
20d45dca90
commit
6b26a9bf63
5 changed files with 148 additions and 1 deletions
32
.forgejo/workflows/build-and-deploy.yaml
Normal file
32
.forgejo/workflows/build-and-deploy.yaml
Normal file
|
@ -0,0 +1,32 @@
|
|||
name: Build and deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: docker
|
||||
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:runner-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Nix
|
||||
uses: https://guardianproject.dev/actions/install-nix-action@v31
|
||||
|
||||
- name: Install npm dependencies
|
||||
run: nix develop --command npm install
|
||||
|
||||
- name: Login to Netlify
|
||||
run: nix develop --command netlify login -auth $NETLIFY_AUTH_TOKEN
|
||||
|
||||
- name: Run build
|
||||
run: nix develop --command netlify build
|
||||
|
||||
- name: Deploy
|
||||
run: nix develop --command netlify deploy
|
Loading…
Add table
Add a link
Reference in a new issue