Skip to content

Commit d57709e

Browse files
authoredMar 31, 2024
ci: fix cd job (#92)
1 parent b5a2470 commit d57709e

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed
 

‎.conventional-commits/GitVersion.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
assembly-versioning-scheme: MajorMinorPatch
33
mode: Mainline
4-
ignore:
5-
sha: []
64
merge-message-formats: {}
75

86
# Conventional Commit Reference

‎.github/workflows/cd.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,28 @@ jobs:
1414
runs-on: ubuntu-latest
1515
permissions:
1616
id-token: write
17+
contents: write
1718
environment:
1819
name: pypi
1920
url: https://pypi.org/p/data-factory-testing-framework
2021
steps:
22+
- name: Check out repository
23+
uses: actions/checkout@v4
2124
- name: Download sdist
2225
uses: actions/download-artifact@v3
2326
with:
24-
name: dist
27+
name: sdist
2528
path: dist
2629
- name: Download whl
2730
uses: actions/download-artifact@v3
2831
with:
2932
name: whl
3033
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 }}
3138
- name: Publish package distributions to PyPI
3239
uses: pypa/gh-action-pypi-publish@release/v1
3340
with:
3441
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 }}

‎.github/workflows/ci-cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
if: github.ref == 'refs/heads/main'
1212
permissions:
1313
id-token: write
14+
contents: write
1415
uses: ./.github/workflows/cd.yml
1516
with:
1617
version: ${{ needs.ci.outputs.version }}

‎.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
fetch-tags: true
2121
fetch-depth: 0
2222
- name: Install GitVersion
23-
uses: gittools/actions/gitversion/setup@v0
23+
uses: gittools/actions/gitversion/setup@v1.1.1
2424
with:
2525
versionSpec: '5.x'
2626
- name: Determine Version

‎.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: CD
2+
name: E2E
33

44
on:
55
workflow_call: # yamllint disable-line rule:truthy

0 commit comments

Comments
 (0)
Failed to load comments.