Skip to content

Commit

Permalink
[478] update docs for v4 (philosowaffle#551)
Browse files Browse the repository at this point in the history
* [478] update docs for v4

* update docs and migrate to mkdocs/mike

* add dependency

* trigger on docs update
  • Loading branch information
philosowaffle authored and cantolick committed Dec 10, 2023
1 parent 3ef7c78 commit 37191b7
Show file tree
Hide file tree
Showing 44 changed files with 944 additions and 1,414 deletions.
49 changes: 0 additions & 49 deletions .github/actions/publish-console-exe-dist/action.yaml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/jekyll-gh-pages.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,6 @@ jobs:
- name: Test
run: dotnet test

publish-windows-console-exe-dist:
name: Publish Windows Console Exe Distribution
runs-on: 'windows-latest'
needs: build-and-test
strategy:
matrix:
dotnet: [ '7.0' ]
os: [ 'win10-x64' ]

steps:

- uses: actions/checkout@v3
- name: Publish Windows Console Exe Distribution
uses: ./.github/actions/publish-console-exe-dist
with:
dotnet-version: ${{ matrix.dotnet }}
os: ${{ matrix.os }}

publish-ui-dist:
name: Publish UI Distribution
runs-on: 'windows-latest'
Expand Down
39 changes: 21 additions & 18 deletions .github/workflows/publish-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
paths:
- 'src/**'
- 'docker/**'
- 'mkdocs/**'
- 'PelotonToGarmin.sln'
- 'configuration.example.json'

Expand Down Expand Up @@ -38,23 +39,6 @@ jobs:
secret_docker_password: ${{ secrets.DOCKER_PASSWORD }}
secret_github_package: ${{ secrets.GH_PACKAGE_SECRET}}

publish-windows-console-exe-dist:
name: Publish Windows Console Exe Distribution
runs-on: 'windows-latest'
strategy:
matrix:
dotnet: [ '7.0' ]
os: [ 'win10-x64' ]

steps:

- uses: actions/checkout@v3
- name: Publish Windows Console Exe Distribution
uses: ./.github/actions/publish-console-exe-dist
with:
dotnet-version: ${{ matrix.dotnet }}
os: ${{ matrix.os }}

publish-ui-dist:
name: Publish UI Distribution
runs-on: 'windows-latest'
Expand All @@ -72,4 +56,23 @@ jobs:
with:
dotnet-version: ${{ matrix.dotnet }}
os: ${{ matrix.os }}
framework: ${{ matrix.framework }}
framework: ${{ matrix.framework }}

publish-gh-pages:
name: Publish GH Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Configure Git user
run: |
git config --local user.email "[email protected]"
git config --local user.name "philosowaffle"
- uses: actions/setup-python@v4
with:
python-version: 3.x

- run: pip install mkdocs-material mike
- run: mike deploy --push master
working-directory: ./mkdocs
51 changes: 23 additions & 28 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,6 @@ jobs:
secret_docker_password: ${{ secrets.DOCKER_PASSWORD }}
secret_github_package: ${{ secrets.GH_PACKAGE_SECRET}}

publish-windows-console-exe-dist:
name: Publish Windows Console Distribution
runs-on: 'windows-latest'
outputs:
artifact: ${{ steps.win-exe-create-artifact.outputs.artifact }}
strategy:
matrix:
dotnet: [ '7.0' ]
#os: [ 'win10-x64', 'osx-x64' ] # osx signing issue, mac wont run the executable
os: [ 'win10-x64' ]

steps:

- uses: actions/checkout@v3
- name: Publish Windows Console Exe Distribution
uses: ./.github/actions/publish-console-exe-dist
id: win-exe-create-artifact
with:
dotnet-version: ${{ matrix.dotnet }}
os: ${{ matrix.os }}

publish-ui-dist:
name: Publish UI Distribution
runs-on: 'windows-latest'
Expand All @@ -90,14 +69,8 @@ jobs:

create-gh-release:
runs-on: ubuntu-latest
needs: [publish-windows-console-exe-dist, publish-ui-dist, publish-docker-images ]
needs: [publish-ui-dist, publish-docker-images]
steps:
- name: Create Zip for Win EXE Release Artifact
uses: papeloto/action-zip@v1
with:
files: ${{ needs.publish-windows-console-exe-dist.outputs.artifact }}
dest: /dist/console_win_${{ github.event.inputs.version }}.zip

- name: Create Zip for Win UI Release Artifact
uses: papeloto/action-zip@v1
with:
Expand All @@ -113,3 +86,25 @@ jobs:
allowUpdates: true
replacesArtifacts: true
bodyFile: ${{ github.workspace }}/vNextReleaseNotes.md

publish-gh-pages:
name: Publish GH Pages
runs-on: ubuntu-latest
needs: [create-gh-release]
steps:
- uses: actions/checkout@v4

- name: Configure Git user
run: |
git config --local user.email "[email protected]"
git config --local user.name "philosowaffle"
- uses: actions/setup-python@v4
with:
python-version: 3.x

- run: pip install mkdocs-material mike
- run: mike deploy --push --update-aliases v${{ github.event.inputs.version }} latest
working-directory: ./mkdocs
- run: mike set-default --push latest
working-directory: ./mkdocs
1 change: 0 additions & 1 deletion .github/workflows/sync_peloton_to_garmin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
cat <<EOT > /app/configuration.local.json
{
"App": {
"OutputDirectory": "/app/output",
"EnablePolling": false
},
"Format": {
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,6 @@ configuration.local.json
.vs/
/.vscode/settings.json
/src/ClientUI/ClientUI.csproj.user

# docs
/mkdocs/site
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3.9"
services:
p2g:
container_name: p2g
image: philosowaffle/peloton-to-garmin:stable
image: philosowaffle/peloton-to-garmin:console-stable
environment:
- TZ=America/Chicago
volumes:
Expand Down
4 changes: 0 additions & 4 deletions docs/.gitignore

This file was deleted.

30 changes: 0 additions & 30 deletions docs/Gemfile

This file was deleted.

Loading

0 comments on commit 37191b7

Please sign in to comment.