Skip to content

Commit e509a0d

Browse files
committed
Update build package action artifact version
download/upload-artifact v3 action now deprecated bump to v4
1 parent ddf975d commit e509a0d

File tree

1 file changed

+48
-48
lines changed

1 file changed

+48
-48
lines changed

.github/workflows/build_package.yml

+48-48
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'Version to release - make sure its same as setup.py'
7+
description: "Version to release - make sure its same as setup.py"
88
required: true
99
changelog:
10-
description: 'Release changelog description'
10+
description: "Release changelog description"
1111
required: false
1212

1313
jobs:
@@ -18,65 +18,65 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
python-version: ['3.8']
21+
python-version: ["3.8"]
2222

2323
steps:
24-
- name: Checkout code
25-
uses: actions/checkout@v4
24+
- name: Checkout code
25+
uses: actions/checkout@v4
2626

27-
- name: Set up Python ${{ matrix.python-version }}
28-
uses: actions/setup-python@v4
29-
with:
30-
python-version: ${{ matrix.python-version }}
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v4
29+
with:
30+
python-version: ${{ matrix.python-version }}
3131

32-
- name: Install dependencies
33-
run: |
34-
python -m pip install --upgrade pip
35-
pip install setuptools wheel build
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install setuptools wheel build
3636
37-
- name: Build package
38-
run: python -m build
37+
- name: Build package
38+
run: python -m build
3939

40-
- name: Upload artifacts
41-
uses: actions/upload-artifact@v3
42-
with:
43-
name: dist-${{ matrix.python-version }}
44-
path: dist/
40+
- name: Upload artifacts
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: dist-${{ matrix.python-version }}
44+
path: dist/
4545

4646
publish:
4747
needs: release
4848
runs-on: ubuntu-latest
4949

5050
steps:
51-
- name: Checkout code
52-
uses: actions/checkout@v4
51+
- name: Checkout code
52+
uses: actions/checkout@v4
5353

54-
- name: Download all artifacts
55-
uses: actions/download-artifact@v3
56-
with:
57-
path: dist
54+
- name: Download all artifacts
55+
uses: actions/download-artifact@v4
56+
with:
57+
path: dist
5858

59-
- name: Generate Changelog
60-
id: changelog
61-
run: |
62-
if [ -z "${{ github.event.inputs.changelog }}" ]; then
63-
echo "changelog=Release version ${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
64-
else
65-
echo "changelog=${{ github.event.inputs.changelog }}" >> $GITHUB_OUTPUT
66-
fi
59+
- name: Generate Changelog
60+
id: changelog
61+
run: |
62+
if [ -z "${{ github.event.inputs.changelog }}" ]; then
63+
echo "changelog=Release version ${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
64+
else
65+
echo "changelog=${{ github.event.inputs.changelog }}" >> $GITHUB_OUTPUT
66+
fi
6767
68-
- name: Create Git Tag
69-
uses: EndBug/latest-tag@latest
70-
with:
71-
tag-name: v${{ github.event.inputs.version }}
68+
- name: Create Git Tag
69+
uses: EndBug/latest-tag@latest
70+
with:
71+
tag-name: v${{ github.event.inputs.version }}
7272

73-
- name: Create GitHub Release
74-
uses: softprops/action-gh-release@v1
75-
with:
76-
tag_name: v${{ github.event.inputs.version }}
77-
body: ${{ steps.changelog.outputs.changelog }}
78-
files: |
79-
dist/**/*.whl
80-
dist/**/*.tar.gz
81-
env:
82-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+
- name: Create GitHub Release
74+
uses: softprops/action-gh-release@v1
75+
with:
76+
tag_name: v${{ github.event.inputs.version }}
77+
body: ${{ steps.changelog.outputs.changelog }}
78+
files: |
79+
dist/**/*.whl
80+
dist/**/*.tar.gz
81+
env:
82+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)