Skip to content

Commit b015815

Browse files
authored
feat: Continuous Delivery 🚀
1 parent c156583 commit b015815

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Deploy
2+
description: Publish package on PyPI
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Prepare Poetry
7+
shell: bash
8+
run: poetry config pypi-token.pypi ${{ env.PYPI_API_TOKEN }}
9+
10+
- name: Publish
11+
shell: bash
12+
run: |
13+
poetry version ${{ env.VERSION }}
14+
poetry publish --build

‎.github/workflows/cd.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CD
2+
3+
on:
4+
push:
5+
tags:
6+
- "[0-9]+.[0-9]+.[0-9]+"
7+
8+
jobs:
9+
cd:
10+
name: Continuous Delivery
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Run checkout
15+
uses: actions/checkout@v3
16+
17+
- name: Set up environment
18+
uses: ./.github/actions/environment
19+
20+
- name: Deploy
21+
uses: ./.github/actions/deploy
22+
env:
23+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
24+
VERSION: ${{ github.ref_name }}

0 commit comments

Comments
 (0)