Skip to content

Commit

Permalink
check1
Browse files Browse the repository at this point in the history
  • Loading branch information
EliMoshkovich committed May 6, 2024
1 parent 107b6bf commit dfbd1ff
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/python-sdk-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Release permit python SDK

on:
release:
types: [published]
on: push
# release:
# types: [published]

env:
PROJECT_ID: 7f55831d77c642739bc17733ab0af138 #github actions project id (under 'Permit.io Tests' workspace)
Expand Down Expand Up @@ -83,26 +83,26 @@ jobs:
https://api.permit.io/v2/projects/${{ env.PROJECT_ID }}/envs/${{ env.ENV_ID }} \
-H 'Authorization: Bearer ${{ secrets.PROJECT_API_KEY }}'
- name: Bump version and commit changes
run: |
sed -i "s/version=\"[0-9.]*\"/version=\"${{ github.event.release.tag_name }}\"/" setup.py
git config --local user.email "eli@permit.io"
git config --local user.name "elimoshkovich"
git add setup.py
git commit -m "Bump version to ${{ github.event.release.tag_name }}"
- name: Build Python package
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}

- name: Push changes of setup.py to GitHub
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.TOKEN_GITHUB }}
branch: main
# - name: Bump version and commit changes
# run: |
# sed -i "s/version=\"[0-9.]*\"/version=\"${{ github.event.release.tag_name }}\"/" setup.py
# git config --local user.email "eli@permit.io"
# git config --local user.name "elimoshkovich"
# git add setup.py
# git commit -m "Bump version to ${{ github.event.release.tag_name }}"

# - name: Build Python package
# run: |
# pip install wheel
# python setup.py sdist bdist_wheel

# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_TOKEN }}

# - name: Push changes of setup.py to GitHub
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.TOKEN_GITHUB }}
# branch: main

0 comments on commit dfbd1ff

Please sign in to comment.