-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7aeca29
commit 273785c
Showing
8 changed files
with
58 additions
and
15 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 |
---|---|---|
|
@@ -20,6 +20,13 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip | ||
pip install ".[docs,tutorials]" | ||
# if there is doc or tutorial requirements.txt file then install it | ||
if [ -f ./docs/tutorials/requirements.txt ]; then | ||
pip install -r ./docs/tutorials/requirements.txt | ||
fi | ||
if [ -f ./docs/requirements.txt ]; then | ||
pip install -r ./docs/requirements.txt | ||
fi | ||
- name: Build and Commit | ||
uses: sphinx-notes/[email protected] | ||
|
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,15 +1,29 @@ | ||
name: Release | ||
on: | ||
# uncomment the following to only release on push to main | ||
# this is not recommended as it will not release if the tests fail | ||
# however it is faster and can be used for testing | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
branches: | ||
- main | ||
# uncomment the following to only release on a successful workflow run | ||
# this is recommended as it will only release if the tests pass | ||
# this however cause you to test twice which might be not be ideal | ||
# if you oncomment this | ||
# workflow_run: | ||
# workflows: ["Tests"] | ||
# types: | ||
# - completed | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
concurrency: release | ||
|
||
# if the workflow run was successful and the branch is main: | ||
# only uncomment this if you uncomment the workflow_run above | ||
# if: ${{ github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/main' }} | ||
# only uncomment this if you run on push to main | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
steps: | ||
# Checkout action is required for token to persist | ||
|
@@ -21,11 +35,12 @@ jobs: | |
- name: Python Semantic Release | ||
uses: relekang/[email protected] | ||
with: | ||
git_committer_name: release-bot | ||
github_token: ${{ secrets.RELEASE }} | ||
# Remember to copy the [semantic_release] section from setup.cfg | ||
# Remember to copy the [semantic_release] section from pyproject.toml | ||
# as well | ||
# To enable pypi, | ||
# 1) Set upload_to_pypi to true in setup.cfg and | ||
# 1) Set upload_to_pypi to true in pyproject.toml and | ||
# 2) Set the pypi_token in the repo | ||
# 3) Uncomment the two lines below | ||
repository_username: __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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# only for requirements which can't be specified in the pyproject.toml file | ||
# e.g. links to wheels which is not allowed in pyproject.toml on pypi | ||
|
||
# spacy pipeline | ||
https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.2.0/en_core_web_sm-3.2.0.tar.gz |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# only for requirements which can't be specified in the pyproject.toml file | ||
# e.g. links to wheels which is not allowed in pyproject.toml on pypi | ||
|
||
# spacy pipeline | ||
https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.2.0/en_core_web_sm-3.2.0.tar.gz |