Skip to content

MAINT - Update release docs and add issue template (#608) #54

MAINT - Update release docs and add issue template (#608)

MAINT - Update release docs and add issue template (#608) #54

Workflow file for this run

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/')