Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: eclipse-openbsw/openbsw
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3ff640276ee24515ff88246116076c8cafeb4981
Choose a base ref
..
head repository: eclipse-openbsw/openbsw
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fd3930b539f8431ec55ead6fdd3a1208648f8ca6
Choose a head ref
Showing with 74 additions and 9 deletions.
  1. +13 −7 .github/workflows/{docs.yml → doc-build.yml}
  2. +32 −0 .github/workflows/doc-publish.yml
  3. +1 −2 .github/workflows/format.yml
  4. +27 −0 .github/workflows/release.yml
  5. +1 −0 .treefmt.toml
20 changes: 13 additions & 7 deletions .github/workflows/docs.yml → .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Build and Deploy Documentation
name: Build Documentation

on: [push, pull_request]
on: [workflow_call, pull_request]

permissions:
contents: write

jobs:
build:
@@ -41,9 +43,13 @@ jobs:
- name: Copy redirection index.html
run: cp github_pages/redirect_index.html build/html/index.html

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
- name: Zip documentation
run: |
mv build/html docs
zip -r docs.zip docs
- name: Upload docs
uses: actions/upload-artifact@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/build/html
force_orphan: true
name: docs
path: ./doc/docs.zip
32 changes: 32 additions & 0 deletions .github/workflows/doc-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Documentation

on:
push:
branches:
- main

permissions:
contents: write

jobs:
build-docs:
uses: ./.github/workflows/doc-build.yml

publish-docs:
runs-on: ubuntu-latest
needs: build-docs
steps:
- name: Download build documentation
uses: actions/download-artifact@v4
with:
name: docs

- name: Unzip
run: unzip docs.zip

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs
force_orphan: true
3 changes: 1 addition & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ jobs:
- name: Install treefmt
run: |
curl -L https://github.com/numtide/treefmt/releases/download/v2.0.5/treefmt_2.0.5_linux_amd64.tar.gz -o treefmt.tar.gz
curl -L https://github.com/numtide/treefmt/releases/download/v2.1.0/treefmt_2.1.0_linux_amd64.tar.gz -o treefmt.tar.gz
tar -xvzf treefmt.tar.gz
install -m 755 treefmt $HOME/.local/bin
rm LICENSE README.md treefmt treefmt.tar.gz
@@ -33,7 +33,6 @@ jobs:
- uses: actions/checkout@v4

- name: Check code format
continue-on-error: true
run: |
treefmt
git diff --exit-code
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Release

on:
push:
tags:
- "v*.*"

jobs:
build-docs:
uses: ./.github/workflows/doc-build.yml

create-release:
runs-on: ubuntu-latest
needs: build-docs
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download build documentation
uses: actions/download-artifact@v4
with:
name: docs

- name: Release
uses: softprops/action-gh-release@v2
with:
files: docs.zip
1 change: 1 addition & 0 deletions .treefmt.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[global]
excludes = [
"**/3rdparty/*/**",
"**/Doxyfile",
"**/Makefile",
"*.*-format",
"*.S",