forked from pallets-eco/flask-session
-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (31 loc) · 830 Bytes
/
Copy pathrelease.yml
File metadata and controls
38 lines (31 loc) · 830 Bytes
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
name: Release
on:
push:
branches: [master]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Poetry
uses: snok/install-poetry@v1
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
id: semantic
with:
semantic_version: 18
extra_plugins: |
@semantic-release/changelog@6
@semantic-release/exec
@semantic-release/git@10
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
- name: Build and publish package
if: steps.semantic.outputs.new_release_published == 'true'
uses: JRubics/poetry-publish@v1.17
with:
pypi_token: ${{ secrets.PYPI_API_TOKEN }}