5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
assembly-versioning-scheme : MajorMinorPatch
3
3
mode : Mainline
4
- ignore :
5
- sha : []
6
4
merge-message-formats : {}
7
5
8
6
# Conventional Commit Reference
Original file line number Diff line number Diff line change @@ -14,25 +14,28 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
permissions :
16
16
id-token : write
17
+ contents : write
17
18
environment :
18
19
name : pypi
19
20
url : https://pypi.org/p/data-factory-testing-framework
20
21
steps :
22
+ - name : Check out repository
23
+ uses : actions/checkout@v4
21
24
- name : Download sdist
22
25
uses : actions/download-artifact@v3
23
26
with :
24
- name : dist
27
+ name : sdist
25
28
path : dist
26
29
- name : Download whl
27
30
uses : actions/download-artifact@v3
28
31
with :
29
32
name : whl
30
33
path : dist
34
+ - name : Create release
35
+ run : gh release create "v${{ inputs.version }}" --prerelease --target ${{ github.ref }}
36
+ env :
37
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
38
- name : Publish package distributions to PyPI
32
39
uses : pypa/gh-action-pypi-publish@release/v1
33
40
with :
34
41
packages-dir : ./dist
35
- - name : Create release
36
- run : gh release create ${{ inputs.version }} --prerelease --target ${{ github.ref }}
37
- env :
38
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11
11
if : github.ref == 'refs/heads/main'
12
12
permissions :
13
13
id-token : write
14
+ contents : write
14
15
uses : ./.github/workflows/cd.yml
15
16
with :
16
17
version : ${{ needs.ci.outputs.version }}
Original file line number Diff line number Diff line change 20
20
fetch-tags : true
21
21
fetch-depth : 0
22
22
- name : Install GitVersion
23
- uses : gittools/actions/gitversion/setup@v0
23
+ uses : gittools/actions/gitversion/setup@v1.1.1
24
24
with :
25
25
versionSpec : ' 5.x'
26
26
- name : Determine Version
Original file line number Diff line number Diff line change 1
1
---
2
- name : CD
2
+ name : E2E
3
3
4
4
on :
5
5
workflow_call : # yamllint disable-line rule:truthy
0 commit comments