Skip to content

Commit

Permalink
Updates github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
martynp committed Mar 14, 2023
1 parent fbadb73 commit e960008
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: HTTPIE_HMAC Actions

on: [push, pull_request]
on: push

jobs:
flake8-lint:
Expand All @@ -19,11 +19,30 @@ jobs:
runs-on: ubuntu-latest
name: Publish
steps:
- name: Install dependencies
run: pip install wheel
- name: Build package
run: python setup.py sdist bdist_wheel
- name: Publish package
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit e960008

Please sign in to comment.