-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (47 loc) · 1.5 KB
/
release.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
name: Create Release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.2.1
- name: Version from Python
run: echo "VERSION=$(python3 -c 'import version; print(version.VERSION)')" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v5.2.0
with:
python-version: 3.x
- name: Install Poetry
run: |
pip install poetry
poetry config virtualenvs.create false # Skip creating a virtual environment
env:
POETRY_HOME: ${{ github.workspace }}/.poetry
- name: Install project dependencies
run: |
poetry install
env:
POETRY_HOME: ${{ github.workspace }}/.poetry
- name: Build package
run: |
poetry build
env:
POETRY_HOME: ${{ github.workspace }}/.poetry
- name: Create Release
uses: ncipollo/release-action@v1.14.0
with:
tag: ${{ env.VERSION}}
name: Version ${{env.VERSION}}
body: |
Automated Release preparation using Git Tag
- make sure tests didn't fail
- needs to be published from draft online
Install as package using:
pip install git+https://github.com/bensteUEM/ChurchToolsAPI.git@${{env.VERSION}}#egg=churchtools-api
draft: true
prerelease: false
artifacts: dist/*