MAINT - Update release docs and add issue template (#608) #54
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 conda-store" | |
on: | |
release: | |
types: [created] | |
push: | |
branches: | |
- "*" | |
workflow_dispatch: | |
env: | |
FORCE_COLOR: "1" # Make tools pretty. | |
permissions: | |
contents: read # This is required for actions/checkout | |
jobs: | |
pypi-release: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
strategy: | |
matrix: | |
directory: | |
- "conda-store" | |
- "conda-store-server" | |
defaults: | |
run: | |
working-directory: ${{ matrix.directory }} | |
steps: | |
- name: "Checkout Repository 🛎" | |
uses: actions/checkout@v4 | |
- name: "Set up Python 🐍" | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: "Install dependencies 📦" | |
run: | | |
pip install hatch twine | |
- name: "Build Package 📦" | |
run: | | |
hatch build | |
twine check dist/* | |
- name: "Upload to PyPI 🚀" | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
print-hash: true | |
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/') |