Skip to content

Commit 26d230d

Browse files
Merge pull request #126 from dynatrace-extensions/fix/pipeline
Upload artifact added to build job.
2 parents 9bee759 + a5d98cb commit 26d230d

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

.github/workflows/build-package.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,10 @@ jobs:
3131
- name: Build a wheel and a source tarball
3232
run: |
3333
python3 -m hatch build
34+
35+
- name: Upload built distributions
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: package
39+
path: dist/*
40+

.github/workflows/publish.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ name: Publish to PyPI
22
on:
33
workflow_dispatch:
44

5-
jobs:
6-
build-package:
7-
uses: ./.github/workflows/build-package.yml
8-
5+
jobs:
96
check-tag:
107
runs-on: ubuntu-latest
118
steps:
@@ -16,17 +13,10 @@ jobs:
1613
if: steps.check_ref.outputs.match != 'true'
1714
run: exit 1
1815

19-
upload-artifact:
20-
needs: build-package
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: actions/checkout@v4
24-
- name: Store the distribution packages
25-
uses: actions/upload-artifact@v4
26-
with:
27-
name: package
28-
path: |
29-
dist/*
16+
build-package:
17+
needs:
18+
- check-tag
19+
uses: ./.github/workflows/build-package.yml
3020

3121
github-release:
3222
name: Create GitHub release

0 commit comments

Comments
 (0)