From 6f04e21e4d31a528304cfe7fc02e997a19a625cf Mon Sep 17 00:00:00 2001 From: saratheriver Date: Wed, 19 Oct 2022 11:10:13 -0400 Subject: [PATCH] =?UTF-8?q?[WKF=20=F0=9F=8C=8A]=20added=20workflow=20for?= =?UTF-8?q?=20tagged=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/tagged_release.yml | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/tagged_release.yml diff --git a/.github/workflows/tagged_release.yml b/.github/workflows/tagged_release.yml new file mode 100644 index 0000000..e0e2619 --- /dev/null +++ b/.github/workflows/tagged_release.yml @@ -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