-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 929 Bytes
/
release.yaml
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
name: Build
on:
push:
permissions:
contents: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
outputs:
package_version: ${{ steps.baipp.outputs.package_version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@v2
id: baipp
publish:
runs-on: ubuntu-latest
needs: build
environment:
name: publishing
url: https://pypi.org/project/tap-betterstack/${{ needs.build.outputs.package_version }}
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- uses: svenstaro/upload-release-action@v2
with:
file: dist/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- uses: pypa/gh-action-pypi-publish@release/v1