Skip to content

Commit 78a7ef6

Browse files
authored
Add publishing step (#15)
1 parent 297facf commit 78a7ef6

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/dissect-ci.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,26 @@ jobs:
66
uses: fox-it/dissect-workflow-templates/.github/workflows/dissect-ci-template.yml@main
77
with:
88
run_tests: false
9-
on-demand-test: 'dissect.target'
109
secrets: inherit
10+
11+
publish:
12+
if: ${{ github.ref_name == 'main' || github.ref_type == 'tag' }}
13+
needs: [ci]
14+
runs-on: ubuntu-latest
15+
environment: dissect_publish
16+
permissions:
17+
id-token: write
18+
steps:
19+
- uses: actions/download-artifact@v3
20+
with:
21+
name: packages
22+
path: dist/
23+
# According to the documentation, it automatically looks inside the `dist/` folder for packages.
24+
- name: Publish package distributions to Pypi
25+
uses: pypa/gh-action-pypi-publish@release/v1
26+
27+
trigger-tests:
28+
needs: [publish]
29+
uses: fox-it/dissect-workflow-templates/.github/workflows/dissect-ci-demand-test-template.yml@main
30+
with:
31+
on-demand-test: 'dissect.target'

0 commit comments

Comments
 (0)