-
Notifications
You must be signed in to change notification settings - Fork 52
52 lines (44 loc) · 1.16 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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/')