Merge pull request #21 from krassowski/menu-upgrade-for-hub5 #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Release nebari theme" | |
on: | |
push: | |
tags: | |
- "*" | |
workflow_dispatch: | |
inputs: | |
release_tag: | |
description: "Tag for test PyPI release" | |
jobs: | |
release: | |
name: PyPI Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo π | |
uses: actions/checkout@master | |
- name: Set up Python π | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
architecture: "x64" | |
- name: Install hatch π¦ | |
run: | | |
pip install hatch | |
- name: Build package π | |
run: hatch build | |
- name: Publish distribution π¦ to Test PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
repository_url: "https://test.pypi.org/legacy/" | |
- name: Publish distribution π¦ to PyPI | |
if: startsWith(github.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
- name: Set env variables π | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Create GH Release π | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags') | |
with: | |
name: Version ${{ env.RELEASE_VERSION }} | |
files: CHANGELOG.md |