Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename, upgrade actions, and replace s/pipenv/pip/ (#53)
- Loading branch information
Showing
1 changed file
with
8 additions
and
11 deletions.
There are no files selected for viewing
19 changes: 8 additions & 11 deletions
19
.github/workflows/publish.yml → .github/workflows/release.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,29 @@ | ||
name: Publish package | ||
name: Release package | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9].*' | ||
|
||
jobs: | ||
publish-package: | ||
release-package: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
uses: actions/checkout@v3 | ||
- name: Install Python | ||
uses: actions/setup-python@v1 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
architecture: 'x64' | ||
|
||
- name: Build package | ||
run: | | ||
pip install pipenv | ||
pipenv install -dev | ||
pipenv run python setup.py bdist_wheel | ||
python -m pip install --upgrade pip | ||
pip install wheel setuptools | ||
python setup.py bdist_wheel | ||
- name: Upload packate to PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypi_token }} |