From 8d8273fd41db6302ee486c926fc12d209c31831b Mon Sep 17 00:00:00 2001 From: Bob Vandevliet Date: Fri, 21 Jun 2024 17:52:46 +0200 Subject: [PATCH] Added deployment workflow. --- .gitea/workflows/build-and-deploy.yml | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/build-and-deploy.yml 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 }}