steve0greatness,
created on Monday, 15 January 2024, 04:36:35 (1705293395),
received on Monday, 6 May 2024, 02:55:34 (1714964134)
Author identity: Steve0Greatness <75220768+Steve0Greatness@users.noreply.github.com>
822e50f5f774fa571f4c70d20ae64d700bbfd117
.github/workflows/deploy.yml
@@ -1,6 +1,11 @@
name: Python package
name: Python build site
on: [push]
on:
push:
branches: [ "main" ]
permissions:
contents: write
jobs:
build:
@@ -25,14 +30,25 @@ jobs:
git pull
- name: Run Python Builder
run: python build.py gh-pages-deploy
- name: Commit docs directory
run: |
git add docs/
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git commit -am "build to docs dir"
git push
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
# - name: Commit docs directory
# run: |
# git add docs/
# git config --global user.name 'github-actions'
# git config --global user.email 'github-actions@github.com'
# git commit -am "build to docs dir"
# git push
# rm -rf docs/
# git add
# git commit -am "Removed built remnants"
# git push
# - name: Deploy 🚀
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# folder: docs # The folder the action should deploy.
- name: Deploy
uses: crazy-max/ghaction-github-pages@v1
with:
folder: docs # The folder the action should deploy.
target_branch: gh-pages
build_dir: docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}