Add Github Pages website deployment workflow (#207)
1 file changed, 45 insertions(+), 0 deletions(-)
changed files
A .github/workflows/deploy.yml
@@ -0,0 +1,45 @@ +name: Deploy + +on: + push: + branches: + - main + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "deploy" + cancel-in-progress: false + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + + environment: + name: pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Pages + uses: actions/configure-pages@v5 + + - name: Build + run: "mkdir public && echo gomponents >public/index.html" + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: 'public' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4