Skip to content

Commit

Permalink
[WKF 🌊] added workflow for tagged release
Browse files Browse the repository at this point in the history
  • Loading branch information
saratheriver committed Oct 19, 2022
1 parent b4520c4 commit 6f04e21
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/tagged_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "tagged_release"

on:
push:
tags:
- "v*"

jobs:
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.7.
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Install Python ENIGMA Toolbox.
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel
- name: Build binary wheel and tarball.
run: |
python setup.py sdist bdist_wheel
- name: Create Github release.
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
LICENSE
dist/*
- name: Publish to PyPi.
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true

0 comments on commit 6f04e21

Please sign in to comment.