-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (47 loc) · 1.45 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
57
58
name: "Release"
on:
workflow_dispatch:
jobs:
release:
name: Tag and Release
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout repository (full-depth)
uses: actions/checkout@v4
with: { fetch-depth: 0 } # Required to determine version
- name: Get next release version
uses: dronetag/actions/semantic-release@main
id: semantic
- name: Build package
uses: dronetag/actions/build-python@main
with:
version: ${{ steps.semantic.outputs.version }}
- name: Commit and tag
if: ${{ steps.semantic.outputs.existed == 'false' }}
uses: dronetag/actions/commit-and-tag@main
with:
version: ${{ steps.semantic.outputs.version }}
tag-message: ${{ steps.semantic.outputs.changelog }}
git-add: changelog.md
commit: true
github-token: ${{ github.token }}
- name: Release
uses: dronetag/actions/release-python@main
with:
pypi-name: dronetag
pypi-host: ${{ secrets.PRIV_PIP_HOST }}
pypi-user: ${{ secrets.PRIV_PIP_USER }}
pypi-pass: ${{ secrets.PRIV_PIP_PASSWORD }}
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install tools
run: python3 -m pip install --upgrade pip setuptools wheel
- name: Install DEV dependencies
run: pip install -e .[dev]
- name: Run tests
run: bash run_tests.sh