From ac625bbd542054fd35e30d9fe9b70822f0a730aa Mon Sep 17 00:00:00 2001 From: Silas Schnurr <56266659+pa-ssch@users.noreply.github.com> Date: Sat, 11 Jan 2025 14:53:40 +0100 Subject: [PATCH] Update publish-frontend.yml --- .github/workflows/publish-frontend.yml | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/publish-frontend.yml b/.github/workflows/publish-frontend.yml index e69de29..7fabb09 100644 --- a/.github/workflows/publish-frontend.yml +++ b/.github/workflows/publish-frontend.yml @@ -0,0 +1,32 @@ +name: Publish Frontend + +on: + push: + branches: + - 'main' + paths: 'Frontend/**' + +jobs: + publish: + defaults: + run: + working-directory: Frontend + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Node + uses: actions/setup-node@v1 + with: + node-version: "22" + - name: Build + run: | + npm ci --force + npm run build + - name: Deploy + uses: JamesIves/github-pages-deploy-action@3.7.1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages + FOLDER: docs + CLEAN: true