From 5c23042ad9508ecaa9a88ea73f2159916dcc53d3 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 19 Aug 2024 22:26:01 +0200 Subject: [PATCH] Add GH Page publishing --- .github/workflows/publish.yml | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..5b8bd70 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,41 @@ +--- + +name: CI Workflow +on: push + +jobs: + gh-page-publish: + defaults: + run: + shell: bash + + container: + image: luzifer/gh-arch-env + + permissions: + contents: read + pages: write + id-token: write + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + show-progress: false + + - name: Marking workdir safe + run: git config --global --add safe.directory /__w/stadt-land-fluss/stadt-land-fluss + + - name: Generate static page + run: make frontend_prod + + - name: Upload GitHub Pages artifact + uses: actions/upload-pages-artifact@v1 + with: + path: dist + + - name: Deploy artifact + uses: actions/deploy-pages@v1 + +...