Skip to content

Commit

Permalink
Changing workflow to run on python container
Browse files Browse the repository at this point in the history
  • Loading branch information
danielxoi committed Jul 26, 2022
1 parent 596a782 commit 4bdacbb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,20 @@ on:
jobs:
upload:
runs-on: ubuntu-latest
container:
image: python:3.9
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
environment: pypi
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'

- name: Set release notes name
run: |
export RELEASE_NAME_VERSION=${{ github.event.release.name }}
echo "RELEASE_NAME_VERSION=${RELEASE_NAME_VERSION}" >> $GITHUB_ENV
- name: Ensure new version is also set in CHANGES.md
run: |
grep --regexp "${RELEASE_NAME_VERSION}" CHANGES.md
Expand Down

0 comments on commit 4bdacbb

Please sign in to comment.