Added deployment workflow.
This commit is contained in:
parent
44fa02ba16
commit
8d8273fd41
1 changed files with 34 additions and 0 deletions
34
.gitea/workflows/build-and-deploy.yml
Normal file
34
.gitea/workflows/build-and-deploy.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
name: Build and Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
- 'main'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
- 'main'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build and Deploy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
-
|
||||||
|
name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v4.0.0
|
||||||
|
with:
|
||||||
|
version: 9.2.0
|
||||||
|
-
|
||||||
|
name: Install dependencies
|
||||||
|
run: pnpm install
|
||||||
|
-
|
||||||
|
name: Compile CSS
|
||||||
|
run: pnpm run build
|
||||||
|
-
|
||||||
|
name: Copy files to public folder
|
||||||
|
run: rm -rdf ${{ vars.PUBLIC_DIR }}; mkdir -p ${{ vars.PUBLIC_DIR }}; cp -rf public/* ${{ vars.PUBLIC_DIR }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue