Skip to content

release: version 10.80.0.dev1 πŸš€ #1

release: version 10.80.0.dev1 πŸš€

release: version 10.80.0.dev1 πŸš€ #1

Workflow file for this run

name: Upload Python Package
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '*' # Push events to matching v*, i.e. v1.0, v20.15.10
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# by default, it uses a depth of 1
# this fetches all history so that we can read each commit
fetch-depth: 0
- name: Generate Changelog
run: |
.github/release_message.sh > release_message.md
echo "ref_name=${{ github.ref_name }} ${{ github.ref-name }} ${{ contains('dev', github.ref_name) }} ${{ contains(github.ref_name,'dev') }}"
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: ${{ contains(github.ref_name,'dev') }}
body_path: release_message.md
deploy:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine gitchangelog pystache
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
sed -i "/^is_released_version/c is_released_version=True" hiddifypanel/VERSION.py
python setup.py sdist bdist_wheel
twine upload dist/*