From 06002dd74add24ece55453088e3df0f6c37f0105 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 3 Sep 2023 17:06:50 +0200 Subject: Added workflow for docs --- .github/workflows/gen.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/gen.yml (limited to '.github/workflows/gen.yml') diff --git a/.github/workflows/gen.yml b/.github/workflows/gen.yml new file mode 100644 index 0000000..d84469b --- /dev/null +++ b/.github/workflows/gen.yml @@ -0,0 +1,41 @@ +name: Deploy to pages + +on: + push: + branches: + - main + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Pages + id: pages + uses: actions/configure-pages@v3 + - name: Generate files + run: cd docs/ && ./gen.sh + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: docs/ + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 -- cgit v1.2.3