diff --git a/.github/workflows/static-site.yml b/.github/workflows/static-site.yml new file mode 100644 index 0000000..3f9ec50 --- /dev/null +++ b/.github/workflows/static-site.yml @@ -0,0 +1,42 @@ +name: Deploy website + +on: + workflow_dispatch: + push: + branches: + - main + +concurrency: + group: "pages" + cancel-in-progress: true + +permissions: + contents: read + pages: write + id-token: write + +jobs: + + deploy: + name: Deploy the website + runs-on: ubuntu-latest + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Pages + uses: actions/configure-pages@v4 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: './Documentation' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4