Skip to content

Commit d0058a9

Browse files
committed
ci: move tag name formation to the appropriate job
1 parent 35a0c33 commit d0058a9

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/slim.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ jobs:
3737
python3 -m poetry config virtualenvs.create false
3838
python3 -m poetry install --no-root
3939
python3 scripts/multi_build.py
40-
- name: Get current version
41-
id: version
42-
run: echo "version=$(python3 scripts/get_version.py)" >> $GITHUB_OUTPUT
43-
- name: Form a tag name
44-
id: tagname
45-
run: echo "tagname=v${{ steps.version.outputs.version }}.${{ github.run_number }}" >> $GITHUB_OUTPUT
4640
- name: Publish Artifacts
4741
uses: actions/upload-artifact@v3
4842
with:
@@ -53,11 +47,19 @@ jobs:
5347
runs-on: ubuntu-latest
5448
needs: build
5549
steps:
50+
- name: Checkout
51+
uses: actions/checkout@v3
5652
- name: Retrieve artifacts
5753
uses: actions/download-artifact@v3
5854
with:
5955
name: build-artifacts
6056
path: "multi-slim"
57+
- name: Get current version
58+
id: version
59+
run: echo "version=$(python3 scripts/get_version.py)" >> $GITHUB_OUTPUT
60+
- name: Form a tag name
61+
id: tagname
62+
run: echo "tagname=v${{ steps.version.outputs.version }}.${{ github.run_number }}" >> $GITHUB_OUTPUT
6163
- name: Release
6264
uses: ncipollo/release-action@v1
6365
with:

0 commit comments

Comments
 (0)