diff options
author | Markus Wüstenberg | 2024-09-20 10:13:34 +0200 |
---|---|---|
committer | GitHub | 2024-09-20 10:13:34 +0200 |
commit | a4327a0fb6bd02a3d8fb7677ba118b3b5dd1b3e8 (patch) | |
tree | 0f1186bf4afaa6803d7a78e37469bd9ee19e45ea /.github/workflows | |
parent | a8bd2b5e4d3c89575cc3e383b01805912e67271d (diff) | |
download | gomponents-a4327a0fb6bd02a3d8fb7677ba118b3b5dd1b3e8.tar.lz gomponents-a4327a0fb6bd02a3d8fb7677ba118b3b5dd1b3e8.tar.zst gomponents-a4327a0fb6bd02a3d8fb7677ba118b3b5dd1b3e8.zip |
Add Github Pages website deployment workflow (#207)
Diffstat (limited to '.github/workflows')
-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 |