Skip to content

Commit

Permalink
Changing publish workflow to be able to control python version
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Rodriguez committed Oct 11, 2023
1 parent 388440c commit d261399
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,28 @@ jobs:
fetch-depth: 0
token: ${{ steps.app_token.outputs.token }}

- name: Set up Python 3.11
id:setup-python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install dependencies
id:
run: |
python3.11 -m pip install poetry --upgrade pip
poetry config virtualenvs.create false
poetry install
# Can't use: python-semantic-release/[email protected]
# it's running Python 3.10, and Secureli requires >=3.11
- name: Python Semantic Release
id: release
uses: python-semantic-release/[email protected]
with:
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
semantic-release publish -D commit_author="github-actions <[email protected]>"
env:
github_token: ${{ steps.app_token.outputs.token }}

- name: Upload assets to GitHub Releases
Expand Down

0 comments on commit d261399

Please sign in to comment.