-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
45 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
name: Docs | ||
on: [push, pull_request, workflow_dispatch] | ||
name: Generate and Publish Documentation for OSML Imagery Toolkit | ||
|
||
on: | ||
workflow_call: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
docs: | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v3 | ||
- name: Install dependencies | ||
run: | | ||
|
@@ -19,7 +24,6 @@ jobs: | |
tox -e docs | ||
- name: Deploy | ||
uses: peaceiris/[email protected] | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
with: | ||
publish_branch: gh-pages | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: "OSML Imagery Toolkit Build Workflow" | ||
|
||
on: | ||
pull_request: | ||
branches: ["main", "dev"] | ||
|
||
jobs: | ||
Build_Validate_Tox: | ||
uses: ./.github/workflows/python-tox.yml | ||
secrets: inherit |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: "OSML Imagery Toolkit Build and Publish Workflow" | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
|
||
jobs: | ||
Build_Validate_Tox: | ||
uses: ./.github/workflows/python-tox.yml | ||
secrets: inherit | ||
Publish_Python: | ||
needs: [Build_Validate_Tox] | ||
uses: ./.github/workflows/python-publish.yml | ||
secrets: inherit | ||
Publish_Documentation: | ||
needs: [Publish_Python] | ||
uses: ./.github/workflows/documentation-publish.yml | ||
secrets: inherit |
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
14 changes: 4 additions & 10 deletions
14
.github/workflows/python-package.yml → .github/workflows/python-tox.yml
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