.github/workflows/deploy-to-gh-pages.yml hinzugefügt
All checks were successful
Deploy to Github Pages / build (push) Successful in 30s
All checks were successful
Deploy to Github Pages / build (push) Successful in 30s
This commit is contained in:
31
.github/workflows/deploy-to-gh-pages.yml
vendored
Normal file
31
.github/workflows/deploy-to-gh-pages.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Deploy to Github Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
# Give the default GITHUB_TOKEN write permission to commit and push the
|
||||
# added or changed files to the repository.
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
||||
- name: Deploy 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
with:
|
||||
branch: gh-pages
|
||||
folder: docs
|
||||
clean: true
|
||||
single-commit: true
|
Reference in New Issue
Block a user