Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33 changes: 14 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

permissions:
contents: write

jobs:
images:
name: Deployment
Expand All @@ -25,7 +28,7 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.10'
python-version: '3.12'

- uses: abatilo/actions-poetry@v4
with:
Expand All @@ -37,30 +40,22 @@ jobs:
- name: Generate Webpages and Images
run: poetry run python scripts/automate.py

# Don't rebuild the website when changes are pushed to gh-pages branch
# since that branch contains the built HTML pages
- name: Add .nojekyll
run: touch docs/.nojekyll

- name: Build Webpages with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: docs/
destination: docs/_site
token: ${{ secrets.GITHUB_TOKEN }}

# Only build webpage if not on main branch
if: ${{ github.ref != 'refs/heads/main' }}

- name: Commit Changes
uses: EndBug/add-and-commit@v9
# Push the changes to the gh-pages branch
- name: Publish Site
uses: JamesIves/github-pages-deploy-action@v4
with:
message: |
Generated Sample Programs website automatically


on-behalf-of: @TheRenegadeCoder <jeremy.grifski@therenegadecoder.com>
author_name: GitHub Actions
author_email: action@github.com

env:
# This is necessary in order to push a commit to the repo
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged

# Only commit if on main branch
folder: docs/_site
token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.ref == 'refs/heads/main' }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/venv
/docs/_site
/docs/languages
/docs/projects
/docs/Gemfile.lock
/docs/index.md
generated/
/requirements-dev.txt
12 changes: 0 additions & 12 deletions docs/index.md

This file was deleted.

57 changes: 0 additions & 57 deletions docs/languages/ada/index.md

This file was deleted.

34 changes: 0 additions & 34 deletions docs/languages/agda/index.md

This file was deleted.

69 changes: 0 additions & 69 deletions docs/languages/algol60/index.md

This file was deleted.

94 changes: 0 additions & 94 deletions docs/languages/algol68/index.md

This file was deleted.

Loading
Loading