Skip to content

Commit 33a2610

Browse files
authored
Merge pull request #59 from jackbow/upgrade-actions
feat: format and upgrade github actions
2 parents 5a844b1 + cb03f82 commit 33a2610

2 files changed

Lines changed: 37 additions & 37 deletions

File tree

.github/workflows/push.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ jobs:
77
name: Check Formatting
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Check out source repository
11-
uses: actions/checkout@v2
12-
- name: Set up Python environment
13-
uses: actions/setup-python@v3
14-
with:
15-
python-version: 3.9
16-
- name: flake8
17-
uses: py-actions/flake8@v2
18-
- name: black
19-
uses: psf/black@stable
20-
with:
21-
options: "--check --diff -l 90"
10+
- name: Check out source repository
11+
uses: actions/checkout@v3
12+
- name: Set up Python environment
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: 3.9
16+
- name: flake8
17+
uses: py-actions/flake8@v2
18+
- name: black
19+
uses: psf/black@stable
20+
with:
21+
options: '--check --diff -l 90'
2222

2323
build_wheels:
2424
name: Build wheel on ${{matrix.platform}}
@@ -28,9 +28,9 @@ jobs:
2828
matrix:
2929
platform: [ubuntu-latest, macos-latest, windows-latest]
3030
steps:
31-
- uses: actions/checkout@v2
32-
- name: Build wheels
33-
uses: pypa/cibuildwheel@v2.7.0
34-
- uses: actions/upload-artifact@v3
35-
with:
36-
path: ./wheelhouse/*.whl
31+
- uses: actions/checkout@v3
32+
- name: Build wheels
33+
uses: pypa/cibuildwheel@v2.12.0
34+
- uses: actions/upload-artifact@v3
35+
with:
36+
path: ./wheelhouse/*.whl

.github/workflows/release.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@master
14+
uses: actions/checkout@v3
1515
with:
1616
fetch-depth: 2
1717
- name: Get changed files
1818
id: changed-files
19-
uses: tj-actions/changed-files@v5.1
19+
uses: tj-actions/changed-files@v35.4.1
2020
- name: Tag Version
2121
if: contains(steps.changed-files.outputs.modified_files, 'src/fcl/version.py')
2222
id: set_tag
2323
run: |
2424
export VER=v$(python -c "exec(open('src/fcl/version.py','r').read());print(__version__)")
25-
echo "::set-output name=tag_name::${VER}"
25+
echo echo "tag_name=${VER}" >> $GITHUB_OUTPUT
2626
- name: Create Release
2727
if: contains(steps.changed-files.outputs.modified_files, 'src/fcl/version.py')
2828
id: create_release
@@ -46,21 +46,21 @@ jobs:
4646
matrix:
4747
platform: [ubuntu-latest, macos-latest, windows-latest]
4848
steps:
49-
- uses: actions/checkout@v2
50-
- name: Build wheels
51-
uses: pypa/cibuildwheel@v2.11.4
52-
- uses: actions/upload-artifact@v3
53-
with:
54-
path: ./wheelhouse/*.whl
55-
- uses: xresloader/upload-to-github-release@v1
56-
env:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58-
with:
59-
file: ./wheelhouse/*.whl
60-
overwrite: true
61-
draft: false
62-
update_latest_release: true
63-
49+
- uses: actions/checkout@v3
50+
- name: Build wheels
51+
uses: pypa/cibuildwheel@v2.12.0
52+
- uses: actions/upload-artifact@v3
53+
with:
54+
path: ./wheelhouse/*.whl
55+
- uses: xresloader/upload-to-github-release@v1
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
with:
59+
file: ./wheelhouse/*.whl
60+
overwrite: true
61+
draft: false
62+
update_latest_release: true
63+
6464
upload_pypi:
6565
if: contains(needs.create_release.outputs.mod_files, 'src/fcl/version.py')
6666
needs: [create_release, build_wheels]
@@ -70,7 +70,7 @@ jobs:
7070
with:
7171
name: artifact
7272
path: dist
73-
- uses: pypa/gh-action-pypi-publish@v1.5.0
73+
- uses: pypa/gh-action-pypi-publish@v1.6.4
7474
with:
7575
user: __token__
7676
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)