Skip to content

Commit 12e29d0

Browse files
committed
Release pipeline update
1 parent 63debbd commit 12e29d0

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,26 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v2
2626

27+
- name: Generate versions
28+
uses: HardNorth/[email protected]
29+
with:
30+
version-source: file
31+
version-file: ${{ env.VERSION_FILE }}
32+
version-file-extraction-pattern: ${{ env.VERSION_EXTRACT_PATTERN }}
33+
34+
- name: Setup git credentials
35+
uses: oleksiyrudenko/gha-git-credentials@v2
36+
with:
37+
name: 'reportportal.io'
38+
39+
token: ${{ secrets.GITHUB_TOKEN }}
40+
41+
- name: Tagging new version
42+
id: newVersionTag
43+
run: |
44+
git tag -a ${{ env.RELEASE_VERSION }} -m "Release ${{ env.RELEASE_VERSION }}"
45+
git push --tags
46+
2747
- name: Set up Python
2848
uses: actions/setup-python@v2
2949
with:
@@ -41,20 +61,6 @@ jobs:
4161
user: ${{ secrets.PYPI_USERNAME }}
4262
password: ${{ secrets.PYPI_PASSWORD }}
4363

44-
- name: Setup git credentials
45-
uses: oleksiyrudenko/gha-git-credentials@v2
46-
with:
47-
name: 'reportportal.io'
48-
49-
token: ${{ secrets.GITHUB_TOKEN }}
50-
51-
- name: Generate versions
52-
uses: HardNorth/[email protected]
53-
with:
54-
version-source: file
55-
version-file: ${{ env.VERSION_FILE }}
56-
version-file-extraction-pattern: ${{ env.VERSION_EXTRACT_PATTERN }}
57-
5864
- name: Update CHANGELOG.md
5965
id: changelogUpdate
6066
run: |

0 commit comments

Comments
 (0)