6
6
runs-on : ubuntu-latest
7
7
steps :
8
8
- name : Check out source code
9
- uses : actions/checkout@v2
9
+ uses : actions/checkout@v3
10
10
with :
11
11
fetch-depth : 0
12
12
submodules : true
13
13
- name : Set up Python
14
- uses : actions/setup-python@v2
14
+ uses : actions/setup-python@v3
15
15
- name : Install dependencies
16
16
run : |
17
17
python -m pip install setuptools_scm # for setup.py --version
18
18
sudo apt-get install flex bison ccache
19
19
- name : Set up ccache
20
- uses : actions/cache@v1
20
+ uses : actions/cache@v3
21
21
with :
22
22
path : ~/.ccache
23
23
key : ${{ runner.os }}-
28
28
run : |
29
29
pip wheel -e . -w dist/
30
30
- name : Upload binary wheel artifact
31
- uses : actions/upload-artifact@v2
31
+ uses : actions/upload-artifact@v3
32
32
with :
33
33
name : wheel
34
34
path : dist/amaranth_yosys-*.whl
@@ -40,20 +40,20 @@ jobs:
40
40
needs : build
41
41
runs-on : ubuntu-latest
42
42
steps :
43
- - uses : actions/download-artifact@v2
43
+ - uses : actions/download-artifact@v3
44
44
with :
45
45
name : wheel
46
46
path : dist/
47
47
- name : Publish wheels to Test PyPI
48
48
if : github.event_name == 'push' && github.event.ref == 'refs/heads/develop'
49
- uses : pypa/gh-action-pypi-publish@master
49
+ uses : pypa/gh-action-pypi-publish@release/v1
50
50
with :
51
51
user : __token__
52
52
password : ${{ secrets.test_pypi_token }}
53
53
repository_url : https://test.pypi.org/legacy/
54
54
- name : Publish wheels to PyPI
55
55
if : github.event_name == 'push' && github.event.ref == 'refs/heads/release'
56
- uses : pypa/gh-action-pypi-publish@master
56
+ uses : pypa/gh-action-pypi-publish@release/v1
57
57
with :
58
58
user : __token__
59
59
password : ${{ secrets.pypi_token }}
0 commit comments