Skip to content

Commit d25753c

Browse files
committed
hack hack hack hack
Signed-off-by: Brian Harring <ferringb@gmail.com>
1 parent 48e9745 commit d25753c

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
build-and-deploy:
10+
build:
1111
runs-on: ubuntu-latest
1212
environment: release
13+
outputs:
14+
artifact-id: ${{ steps.release-upload.outputs.artifact-id }}
1315

1416
permissions:
1517
id-token: write # Used to authenticate to PyPI via OIDC
@@ -59,19 +61,35 @@ jobs:
5961
tar -ztf dist/*.tar.gz | sort
6062
echo ::endgroup::
6163
62-
- name: Upload artifacts
63-
id: artifacts
64+
- name: Upload release artifacts
65+
id: release-upload
6466
uses: actions/upload-artifact@v5
6567
with:
66-
name: dist-${{ github.sha }}.tar.gz
68+
name: release-${{ github.sha }}.tar.gz
6769
path: dist/*
6870

69-
- name: Testing the release
70-
uses: ./.github/workflows/test.yml
71-
with:
72-
artifact-id: ${{ steps.artifacts.outputs.artifact-id }}
71+
test:
72+
uses: ./.github/workflows/test.yml
73+
needs: [build]
74+
with:
75+
artifact-id: ${{ needs.build.outputs.artifact-id }}
7376
disable-ruff-check: true
7477

78+
publish:
79+
runs-on: ubuntu:latest
80+
needs:
81+
- build
82+
- test
83+
steps:
84+
- name: Get release artifact
85+
uses: actions/download-artifact@v4
86+
with:
87+
artifact-id: ${{ needs.build.outputs.artifact-id }}
88+
path: dist/
89+
90+
- name: test
91+
run: ls
92+
7593
- name: publish
7694
uses: pypa/gh-action-pypi-publish@release/v1
7795
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)