Skip to content

Commit bb70374

Browse files
Merge pull request #125 from blockchain-etl/fix/gh-actions-on-release
Update GH actions on release
2 parents ce867cc + 0cfba1f commit bb70374

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/publish-to-dockerhub.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ on:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@master
12+
- name: Checkout
13+
uses: actions/checkout@v2
1314
- name: Publish to DockerHub
1415
if: startsWith(github.event.ref, 'refs/tags/v')
15-
uses: elgohr/Publish-Docker-Github-Action@2.18
16+
uses: elgohr/Publish-Docker-Github-Action@v5
1617
with:
1718
name: blockchainetl/polygon-etl
1819
workdir: cli
1920
username: ${{ secrets.DOCKER_USERNAME }}
2021
password: ${{ secrets.DOCKER_PASSWORD }}
21-
tag_semver: true
22+
tag_semver: true

.github/workflows/publish-to-pypi.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ on:
88
jobs:
99
build-n-publish:
1010
name: Build and publish to PyPI and TestPyPI
11-
runs-on: ubuntu-18.04
11+
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@master
13+
- name: Checkout
14+
uses: actions/checkout@v2
1415
- name: Set up Python 3.8.12
1516
uses: actions/setup-python@v2
1617
with:
@@ -19,14 +20,14 @@ jobs:
1920
run: cd cli && python setup.py sdist
2021
- name: Publish distribution to Test PyPI
2122
if: startsWith(github.event.ref, 'refs/tags/v')
22-
uses: pypa/gh-action-pypi-publish@master
23+
uses: pypa/gh-action-pypi-publish@release/v1
2324
with:
2425
password: ${{ secrets.test_pypi_password }}
2526
repository_url: https://test.pypi.org/legacy/
2627
packages_dir: cli/dist/
2728
- name: Publish distribution to PyPI
2829
if: startsWith(github.event.ref, 'refs/tags/v')
29-
uses: pypa/gh-action-pypi-publish@master
30+
uses: pypa/gh-action-pypi-publish@release/v1
3031
with:
3132
password: ${{ secrets.pypi_password }}
3233
packages_dir: cli/dist/

0 commit comments

Comments
 (0)