-
-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.26 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
name: Release
on:
push:
branches:
- "main"
jobs:
release-please:
runs-on: ubuntu-latest
env:
PACKAGE_NAME: "poetry-stickywheel-plugin"
steps:
- name: release please
uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: python
package-name: ${{ env.PACKAGE_NAME }}
- name: fetch code
uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- name: set python version
uses: actions/setup-python@v4
with:
python-version: "3.8"
if: ${{ steps.release.outputs.release_created }}
- name: install dependencies
uses: artisanal-actions/poetry-install@v1
if: ${{ steps.release.outputs.release_created }}
- name: build release
if: ${{ steps.release.outputs.release_created }}
run: poetry build
- name: upload assets
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.release.outputs.tag_name }}
files: dist/*
if: ${{ steps.release.outputs.release_created }}
- name: publish release
run: poetry publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_AUTH_TOKEN }}
if: ${{ steps.release.outputs.release_created }}