diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml new file mode 100644 index 0000000..b16ac42 --- /dev/null +++ b/.gitea/workflows/build-and-deploy.yml @@ -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 }}