-
Notifications
You must be signed in to change notification settings - Fork 22
41 lines (31 loc) · 834 Bytes
/
release.yaml
File metadata and controls
41 lines (31 loc) · 834 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
39
40
41
# This CD script builds and pushes the package to code artifact
name: Create package artifact
on:
push:
tags: v**
env:
POETRY_VERSION: 1.2
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: |
pipx install poetry==${{ env.POETRY_VERSION }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: "poetry"
- name: Install Dependencies
run: poetry install --sync
- id: build
name: Build package 🔧
run: poetry build
- name: Create release 🔔
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
generateReleaseNotes: true
token: ${{ secrets.GITHUB_TOKEN }}