Skip to content

Commit

Permalink
Test GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
iMerica committed Apr 13, 2024
1 parent 069cd11 commit 0bccfed
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
name: Release to PyPi
on: [push]
name: Build and Test
on:
push:
branches:
- master
- gha
pull_request:
branches:
- master

jobs:
build:
name: Publish
runs-on: ubuntu-latest
name: Build
steps:
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
user: __token__
password: ${{ secrets.pypi_password }}
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox coveralls
- name: Build
run: python3 setup.py sdist
- name: Store artifacts
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/

0 comments on commit 0bccfed

Please sign in to comment.