Create ghub-pages.yml

This commit is contained in:
OriolFilter 2024-10-13 01:22:53 +02:00 committed by GitHub
parent 7dab55a4b6
commit 606b486cbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

38
.github/workflows/ghub-pages.yml vendored Normal file
View File

@ -0,0 +1,38 @@
name: ghub-pages
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4