Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github action workflows #28

Merged
merged 33 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
bfca50e
Update documentation generation
TheCrossBoy Dec 4, 2023
42c6263
Alternate method of pushing docs
TheCrossBoy Dec 4, 2023
16ced1c
Fix commit commands
TheCrossBoy Dec 4, 2023
629292c
Attempt to fix checkout issue
TheCrossBoy Dec 4, 2023
94bdae0
Generated documentation
actions-user Dec 4, 2023
217efd0
Only generate docs once
TheCrossBoy Dec 4, 2023
dd4d221
Merge branch 'pipeline/update-actions' of https://github.com/cse210-w…
TheCrossBoy Dec 4, 2023
e465c97
Generated documentation
actions-user Dec 4, 2023
209832a
Change the way actions are triggered
TheCrossBoy Dec 4, 2023
4098848
Merge branch 'pipeline/update-actions' of https://github.com/cse210-w…
TheCrossBoy Dec 4, 2023
093b049
Generated documentation
actions-user Dec 4, 2023
a029dbc
Update push to use a PAT
TheCrossBoy Dec 4, 2023
d5f391c
Merge branch 'pipeline/update-actions' of https://github.com/cse210-w…
TheCrossBoy Dec 4, 2023
6a75404
Fix commit branch
TheCrossBoy Dec 4, 2023
4d4180f
Attempt to fix github pushing again
TheCrossBoy Dec 4, 2023
12fab6a
Generated documentation
actions-user Dec 4, 2023
1ac3aa5
Generated documentation
actions-user Dec 4, 2023
ecbe1f8
Generated documentation
actions-user Dec 4, 2023
c013834
Ignore doc generation commits for documentation generation
TheCrossBoy Dec 4, 2023
069bc2f
Merge branch 'pipeline/update-actions' of https://github.com/cse210-w…
TheCrossBoy Dec 4, 2023
adbc4fe
Generated documentation
actions-user Dec 4, 2023
7526c66
Generated documentation
actions-user Dec 4, 2023
3ccf055
Generated documentation
actions-user Dec 4, 2023
dd7dbe6
change the way paths are ignored
TheCrossBoy Dec 4, 2023
53b90a8
Merge branch 'pipeline/update-actions' of https://github.com/cse210-w…
TheCrossBoy Dec 4, 2023
359d84b
Generated documentation
actions-user Dec 4, 2023
0ed4b92
Generated documentation
actions-user Dec 4, 2023
d314015
Change commit depth
TheCrossBoy Dec 4, 2023
286c4b9
Merge branch 'pipeline/update-actions' of https://github.com/cse210-w…
TheCrossBoy Dec 4, 2023
c28b15e
Generated documentation
actions-user Dec 4, 2023
783e1a7
Continue fixes
TheCrossBoy Dec 4, 2023
b182b5c
Merge branch 'pipeline/update-actions' of https://github.com/cse210-w…
TheCrossBoy Dec 4, 2023
3dcbcb7
Generated documentation
actions-user Dec 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 35 additions & 8 deletions .github/workflows/jsdoc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Generate and Deploy JSDoc

on:
push:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'

jobs:
documentation:
Expand All @@ -14,26 +16,51 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [16.x]

steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
persist-credentials: false
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 2

- name: Check changed files
id: changed-files-yaml
uses: tj-actions/changed-files@v40
with:
since_last_remote_commit: true
files_yaml: |
nondoc:
- '!docs/**'

- name: Set up Node.js
if: steps.changed-files-yaml.outputs.nondoc_any_changed == 'true'
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
if: steps.changed-files-yaml.outputs.nondoc_any_changed == 'true'
run: npm install

- name: Generate JSDoc Documentation
if: steps.changed-files-yaml.outputs.nondoc_any_changed == 'true'
run: npm run generate-docs

- name: Deploy Documentation to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
force_orphan: true
- name: Commit Documentation
if: steps.changed-files-yaml.outputs.nondoc_any_changed == 'true'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add docs
git commit -m "Generated documentation"

- name: Push Documentation
if: steps.changed-files-yaml.outputs.nondoc_any_changed == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PAT }}
branch: ${{ github.event.pull_request.head.ref }}

2 changes: 0 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
name: Node.js Test Runner

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

Expand Down
Binary file added docs/fonts/OpenSans-Bold-webfont.eot
Binary file not shown.
1,830 changes: 1,830 additions & 0 deletions docs/fonts/OpenSans-Bold-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/fonts/OpenSans-Bold-webfont.woff
Binary file not shown.
Binary file added docs/fonts/OpenSans-BoldItalic-webfont.eot
Binary file not shown.
1,830 changes: 1,830 additions & 0 deletions docs/fonts/OpenSans-BoldItalic-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/fonts/OpenSans-BoldItalic-webfont.woff
Binary file not shown.
Binary file added docs/fonts/OpenSans-Italic-webfont.eot
Binary file not shown.
1,830 changes: 1,830 additions & 0 deletions docs/fonts/OpenSans-Italic-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/fonts/OpenSans-Italic-webfont.woff
Binary file not shown.
Binary file added docs/fonts/OpenSans-Light-webfont.eot
Binary file not shown.
1,831 changes: 1,831 additions & 0 deletions docs/fonts/OpenSans-Light-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/fonts/OpenSans-Light-webfont.woff
Binary file not shown.
Binary file added docs/fonts/OpenSans-LightItalic-webfont.eot
Binary file not shown.
1,835 changes: 1,835 additions & 0 deletions docs/fonts/OpenSans-LightItalic-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/fonts/OpenSans-LightItalic-webfont.woff
Binary file not shown.
Binary file added docs/fonts/OpenSans-Regular-webfont.eot
Binary file not shown.
1,831 changes: 1,831 additions & 0 deletions docs/fonts/OpenSans-Regular-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/fonts/OpenSans-Regular-webfont.woff
Binary file not shown.
Loading
Loading