-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.27 KB
/
Publish.yml
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
53
name: 🤖 Publish Package
on:
workflow_call:
inputs:
version:
description: 'Set the version number of the published application.'
default: '0.0.0'
required: false
type: string
jobs:
publish-pypi:
name: Python Distribution
runs-on: ubuntu-latest
environment: publish
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: false
- name: Fetch build artifact
uses: actions/download-artifact@v4
with:
name: keystone-client-python
path: dist
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
print-hash: true
attestations: false
trigger-docs:
name: Trigger Docs
runs-on: ubuntu-latest
environment: publish
steps:
- name: Update docs
uses: better-hpc/keystone-docs/.github/actions/update-action/@main
with:
keystone-gitops-id: ${{ secrets.KEYSTONE_GITOPS_ID }}
keystone-gitops-pk: ${{ secrets.KEYSTONE_GITOPS_PK }}
repo-name: keystone-python-client
tag: v${{ inputs.version }}