Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyPI: rename workflow, upgrade actions, and replace s/pipenv/pip/ #53

Merged
merged 1 commit into from
Nov 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 8 additions & 11 deletions .github/workflows/publish.yml → .github/workflows/release.yml
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 }}