diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/deploy.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..809e9af --- /dev/null +++ b/.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 |