diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..e1c6208 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,26 @@ +name: Release + +on: + push: + tags: + - "v*" + +jobs: + release-pypi: + name: release-pypi + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Build + run: | + pip install build + python -m build + - name: Upload to Pypi + run: | + pip install twine + twine upload --username __token__ --password ${{ secrets.PYPI_TOKEN }} dist/* diff --git a/pyproject.toml b/pyproject.toml index cf23509..2af99bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "scrapy-slackbot" -version = "0.2.0" +version = "0.3.0" description = "A Scrapy extension to send notification to the Slack channel." authors = [ {name = "Yuchen Cheng", email = "rudeigerc@gmail.com"},