forked from NomaDamas/k-skill
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.12 KB
/
release-python.yml
File metadata and controls
41 lines (35 loc) · 1.12 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
name: Release Python packages
on:
push:
branches:
- main
paths:
- ".github/release-please/**"
- ".github/workflows/release-python.yml"
- "python-packages/**"
workflow_dispatch:
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
scaffold-only:
if: ${{ hashFiles('python-packages/**/pyproject.toml') == '' }}
runs-on: ubuntu-latest
steps:
- run: echo "No Python package exists yet. release-please remains scaffold-only."
release:
if: ${{ hashFiles('python-packages/**/pyproject.toml') != '' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: release
uses: googleapis/release-please-action@v4
with:
config-file: .github/release-please/python-config.json
manifest-file: .github/release-please/python-manifest.json
- name: Reminder
if: ${{ steps.release.outputs.releases_created == 'true' }}
run: |
echo "Python package release metadata was created."
echo "Wire package-specific build/publish steps here when the first python package is added."