Recreate gh-pages.yml
Dieser Commit ist enthalten in:
Ursprung
881f647582
Commit
4cd8eb1d59
1 geÀnderte Dateien mit 32 neuen und 0 gelöschten Zeilen
32
.github/workflows/gh-pages.yml
gevendort
Normale Datei
32
.github/workflows/gh-pages.yml
gevendort
Normale Datei
|
@ -0,0 +1,32 @@
|
|||
name: Build and deploy to gh-pages
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout đ„
|
||||
uses: actions/checkout@v2.4.0
|
||||
with:
|
||||
token: '${{ secrets.GHPAGES_ACTION_CHECKOUT_TOKEN_PAT }}'
|
||||
|
||||
- name: Install dependencies đ
|
||||
run: |
|
||||
sudo apt-get -y update
|
||||
sudo apt-get -y install python3-pip
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Build site đ§
|
||||
run: |
|
||||
mkdocs build --verbose --clean
|
||||
|
||||
- name: Deploy đ
|
||||
uses: JamesIves/github-pages-deploy-action@v4.2.3
|
||||
with:
|
||||
token: '${{ secrets.GHPAGES_ACTION_DEPLOY_TOKEN_PAT }}'
|
||||
git-config-name: '${{ secrets.GHPAGES_ACTION_DEPLOY_GITNAME_PAT }}'
|
||||
git-config-email: '${{ secrets.GHPAGES_ACTION_DEPLOY_GITEMAIL_PAT }}'
|
||||
branch: gh-pages # The branch the action should deploy to.
|
||||
folder: site # The folder the action should deploy.
|
Laden âŠ
In neuem Issue referenzieren