From 4bdacbb9d6b88c705dc917c43d6a8e77cc3a829c Mon Sep 17 00:00:00 2001 From: Daniel Sulbaran Date: Tue, 26 Jul 2022 09:53:24 -0500 Subject: [PATCH] Changing workflow to run on python container --- .github/workflows/publish.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6e9143e..d43b24d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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