-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.29 KB
/
release.yml
File metadata and controls
48 lines (45 loc) · 1.29 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
42
43
44
45
46
47
48
name: Release
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
tests:
uses: ./.github/workflows/tests.yml
secrets: inherit
deploy:
needs: tests
runs-on: ubuntu-latest
container:
image: python:3.12-slim
env:
YEPCODE_API_TOKEN: ${{ secrets.TEST_YEPCODE_API_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Configure poetry
run: |-
apt update && apt install -y curl gcc g++ && curl -sSL https://install.python-poetry.org | python3 -
export PATH="${PATH}:${HOME}/.local/bin"
echo "${HOME}/.local/bin" >> $GITHUB_PATH
poetry install
- name: Build
run: "poetry build"
- name: Publish
run: "poetry config pypi-token.pypi ${{ secrets.PUBLIC_YEPCODE_PYPI_API_TOKEN }} && poetry publish"
create_release:
needs: deploy
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: false
prerelease: false