-
Notifications
You must be signed in to change notification settings - Fork 14
36 lines (32 loc) · 1.02 KB
/
release.yml
File metadata and controls
36 lines (32 loc) · 1.02 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
name: Publish Python 🐍 package 📦 to PyPI and TestPyPI
on:
workflow_dispatch:
push:
tags:
- v*.*.*
jobs:
release:
name: Publish python package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: python -m pip install --upgrade build
- run: python -m build
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Build and publish docker image
uses: Breakthrough-Energy/actions/workflow-trigger@main
with:
repo: plug
workflow_id: 12413223
token: ${{ secrets.CI_TOKEN_CLONE_REPO }}
inputs: '{"imageTag": "stable"}'