-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add build and deployment of documentation website
- Loading branch information
Showing
18 changed files
with
47 additions
and
361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,55 @@ | ||
name: Publish on GH Pages the documentation | ||
|
||
name: Build and deploy | ||
on: | ||
push: | ||
paths: | ||
- "docs/**" | ||
- 'docs/**' | ||
- '.github/workflows/publish-doc.yaml' | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
contents: write | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
Build-Documentation-Site: | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: slides-${{ github.ref }} | ||
cancel-in-progress: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
- name: Build with Jekyll | ||
uses: actions/jekyll-build-pages@v1 | ||
uses: danysk/action-checkout@0.2.14 | ||
- name: Compute the version of Hugo | ||
id: hugo | ||
shell: bash | ||
run: | | ||
USES=$(cat <<TRICK_RENOVATE | ||
- uses: gohugoio/hugo@v0.123.0 | ||
TRICK_RENOVATE | ||
) | ||
echo "Scripts update line: \"$USES\"" | ||
echo "Computed version: \"${USES#*@v}\"" | ||
echo "version=${USES#*@v}" >> "$GITHUB_OUTPUT" | ||
- name: Download Hugo | ||
run: | | ||
HUGO_VERSION="${{ steps.hugo.outputs.version }}" | ||
URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb" | ||
wget --retry-connrefused --waitretry=1 --read-timeout=20 "$URL" --output-document=hugo.deb | ||
- name: Install Hugo | ||
run: sudo dpkg -i hugo.deb | ||
- name: Remove Hugo Installer | ||
run: rm hugo.deb | ||
- name: Build slides with hugo | ||
run: | | ||
cd docs | ||
hugo | ||
- name: Deployment | ||
if: github.ref == 'refs/heads/master' | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
source: docs | ||
destination: ./_site | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
|
||
publish: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_branch: docs | ||
publish_dir: ./docs/public |
24 changes: 0 additions & 24 deletions
24
back-and-forth/src/main/scala/io/github/tassiLuca/Launcher.scala
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
back-and-forth/src/main/scala/io/github/tassiLuca/boundary/Boundary.scala
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
back-and-forth/src/main/scala/io/github/tassiLuca/boundary/BoundarySource.scala
This file was deleted.
Oops, something went wrong.
50 changes: 0 additions & 50 deletions
50
back-and-forth/src/main/scala/io/github/tassiLuca/boundary/impl/SwingUI.scala
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
back-and-forth/src/main/scala/io/github/tassiLuca/boundary/impl/Timer.scala
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
back-and-forth/src/main/scala/io/github/tassiLuca/core/Controller.scala
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
back-and-forth/src/main/scala/io/github/tassiLuca/core/Event.scala
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
back-and-forth/src/main/scala/io/github/tassiLuca/core/Reaction.scala
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
back-and-forth/src/main/scala/io/github/tassiLuca/core/Space.scala
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
back-and-forth/src/main/scala/io/github/tassiLuca/utils/Types2D.scala
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.