This commit is contained in:
parent
bdaf5470b4
commit
62f6f2fb6e
25
.forgejo/workflows/deploy.yml
Normal file
25
.forgejo/workflows/deploy.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: Deploy Website
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: 'main'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v3
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- name: Install pnpm
|
||||
uses: https://github.com/pnpm/action-setup@v3.0.0
|
||||
- name: Build
|
||||
run: |
|
||||
pnpm install
|
||||
pnpm run build
|
||||
- name: Deploy
|
||||
uses: https://git.gay/gitgay/pages-deploy@v2
|
||||
with:
|
||||
folder: ./export
|
Loading…
Reference in a new issue