mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-04-26 04:14:32 +00:00
* workflows/release: Add PyPI release config * util/release: Don't push to PyPI manually The CI will handle this for us from now on. * VERSION: 1.1.0.rc.1 * workflows/release: Try on this branch * workflows/release: Syntax * workflows/release: Disable on this branch * VERSION: 1.1.0.rc.2
35 lines
797 B
YAML
35 lines
797 B
YAML
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
name: release
|
|
|
|
jobs:
|
|
pypi:
|
|
name: upload release to PyPI
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.8
|
|
- name: create release
|
|
id: create_release
|
|
uses: actions/create-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
tag_name: ${{ github.ref }}
|
|
release_name: Release ${{ github.ref }}
|
|
draft: false
|
|
prerelease: ${{ contains(github.ref, 'pre') || contains(github.ref, 'rc') }}
|
|
- name: sdist
|
|
run: python3 setup.py sdist
|
|
- name: publish
|
|
uses: pypa/gh-action-pypi-publish@master
|
|
with:
|
|
user: __token__
|
|
password: ${{ secrets.PYPI_TOKEN }}
|
|
|