website/.forgejo/workflows/deploy.yml

29 lines
603 B
YAML
Raw Normal View History

2024-04-20 15:03:54 +00:00
name: Deploy Website
on:
push:
branches: 'main'
jobs:
build:
2024-04-20 15:05:00 +00:00
runs-on: ubuntu-latest
2024-04-20 15:03:54 +00:00
steps:
2024-04-20 15:07:56 +00:00
- name: Checkout The Repository
uses: actions/checkout@v3
2024-04-20 15:03:54 +00:00
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
2024-04-20 15:07:56 +00:00
- name: Install PNPM
2024-04-20 15:03:54 +00:00
uses: https://github.com/pnpm/action-setup@v3.0.0
2024-04-20 15:07:56 +00:00
with:
version: 8
2024-04-20 15:03:54 +00:00
- name: Build
run: |
pnpm install
pnpm run build
2024-04-20 15:07:56 +00:00
- name: Deploy The Website
2024-04-21 12:51:22 +00:00
uses: Forgejo/pages-deploy@v1.2
2024-04-20 15:03:54 +00:00
with:
2024-04-20 15:11:37 +00:00
folder: ./out