aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/gen.yml
diff options
context:
space:
mode:
authorMarvin Borner2023-09-03 17:06:50 +0200
committerMarvin Borner2023-09-03 17:08:03 +0200
commit06002dd74add24ece55453088e3df0f6c37f0105 (patch)
treea51834719d367958c21c893f9a177116cc781b73 /.github/workflows/gen.yml
parentfcf1720b97f076da0ccb534072c861933c8185d1 (diff)
Added workflow for docs
Diffstat (limited to '.github/workflows/gen.yml')
-rw-r--r--.github/workflows/gen.yml41
1 files changed, 41 insertions, 0 deletions
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