-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (37 loc) · 1.07 KB
/
release.yml
File metadata and controls
43 lines (37 loc) · 1.07 KB
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
name: "Release"
on:
workflow_run:
workflows: [Continuous Integration]
types: [completed]
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
if: ${{ github.repository == 'cjw296/xerotrust' && github.event.workflow_run.conclusion == 'success' }}
outputs:
tag: ${{ steps.carthorse.outputs.tag }}
steps:
- uses: cjw296/python-action/carthorse@v1
id: carthorse
with:
check: "true"
release:
runs-on: ubuntu-latest
needs: check
if: ${{ needs.check.outputs.tag != '' }}
permissions:
contents: write
id-token: write
steps:
- name: Show tag
run: echo "${{ toJson(needs.check.carthorse.outputs) }}"
shell: bash
- name: Download packages from CI run
uses: dawidd6/action-download-artifact@v9
with:
run_id: ${{ github.event.workflow_run.id }}
name: Packages
path: dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- uses: cjw296/python-action/carthorse@v1