diff options
Diffstat (limited to '.github/workflows/gen.yml')
-rw-r--r-- | .github/workflows/gen.yml | 41 |
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 |