generated from TheDeanLab/navigate-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
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
8e8e03f
commit 9c0a111
Showing
4 changed files
with
51 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
matrix: | ||
python-version: ["3.9"] | ||
operating-system: [windows-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Create .pypirc file | ||
shell: pwsh | ||
run: | | ||
@" | ||
[distutils] | ||
index-servers = | ||
pypi | ||
navigate-at-scale | ||
[pypi] | ||
repository: https://upload.pypi.org/legacy/ | ||
username: __token__ | ||
password: $env:TWINE_API_KEY | ||
|
||
[navigate-at-scale] | ||
repository: https://upload.pypi.org/legacy/ | ||
username: __token__ | ||
password: $env:TWINE_API_KEY | ||
"@ | Set-Content -Path $env:USERPROFILE\.pypirc | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -U setuptools build twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }} | ||
run: | | ||
git tag | ||
python -m build | ||
twine upload -r navigate-at-scale dist/* |
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 |
---|---|---|
|
@@ -12,3 +12,4 @@ __pycache__/ | |
*_autosummary* | ||
docs/build/* | ||
*DS_Store | ||
/.vscode |
This file was deleted.
Oops, something went wrong.
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