-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (67 loc) · 2.56 KB
/
release-please.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
id-token: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
include-component-in-tag: true
- name: Print the output
run: echo "The output was $ALLOUTPUT"
env:
ALLOUTPUT: ${{ toJSON(steps.release.outputs) }}
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.releases_created }}
- name: Set up Python
uses: actions/setup-python@v4
if: ${{ steps.release.outputs.releases_created }}
with:
python-version: "3.12"
- name: Install pypa/build
if: ${{ steps.release.outputs.releases_created }}
run: >-
python3 -m
pip install
build
--user
- name: Build operation_profile_lib
if: ${{ steps.release.outputs.operation_profile_lib--release_created }}
run: python3 -m build
working-directory: operation_profile_lib
- name: Publish operation_profile_lib to PyPI
if: ${{ steps.release.outputs.operation_profile_lib--release_created }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: operation_profile_lib/dist
- name: Build ship_model_lib
if: ${{ steps.release.outputs.ship_model_lib--release_created }}
run: python3 -m build
working-directory: ship_model_lib
- name: Publish ship_model_lib to PyPI
if: ${{ steps.release.outputs.ship_model_lib--release_created }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ship_model_lib/dist
- name: Build ship_performance_service_interface
if: ${{ steps.release.outputs.ship_performance_service_interface--release_created }}
run: python3 -m build
working-directory: ship_performance_service_interface
- name: Publish ship_performance_service_interface to PyPI
if: ${{ steps.release.outputs.ship_performance_service_interface--release_created }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ship_performance_service_interface/dist