Skip to content

Merge pull request #21 from krassowski/menu-upgrade-for-hub5 #6

Merge pull request #21 from krassowski/menu-upgrade-for-hub5

Merge pull request #21 from krassowski/menu-upgrade-for-hub5 #6

Workflow file for this run

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