Skip to content

Commit

Permalink
Update third-party actions
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Oct 5, 2022
1 parent de179ea commit d8b155c
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ jobs:

steps:

- uses: actions/checkout@master
- run: git fetch --prune --unshallow
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8

Expand All @@ -32,14 +33,14 @@ jobs:
- name: Inspect dist folder
run: ls -lah dist/

- name: Check wheel's abi and platform tag
- name: Check wheel's abi and platform tags
run: test $(find dist/ -name *-none-any.whl | wc -l) -gt 0

- name: Run twine check
run: twine check dist/*

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: dist/*
name: dist
Expand All @@ -65,12 +66,12 @@ jobs:
steps:

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Download Python packages
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
path: dist
name: dist
Expand All @@ -90,7 +91,7 @@ jobs:
steps:

- name: Download Python packages
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
path: dist
name: dist
Expand All @@ -103,7 +104,7 @@ jobs:
github.repository == 'ami-iit/jaxsim' &&
((github.event_name == 'push' && github.ref == 'refs/heads/main') ||
(github.event_name == 'release'))
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
Expand Down

0 comments on commit d8b155c

Please sign in to comment.