From dfbd1ff42d2e907c04efe547964eee10a6deac75 Mon Sep 17 00:00:00 2001 From: elimoshkovich Date: Mon, 6 May 2024 08:45:04 -0700 Subject: [PATCH] check1 --- .github/workflows/python-sdk-publish.yml | 52 ++++++++++++------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/python-sdk-publish.yml b/.github/workflows/python-sdk-publish.yml index ef9a6ce..6fd0c84 100644 --- a/.github/workflows/python-sdk-publish.yml +++ b/.github/workflows/python-sdk-publish.yml @@ -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) @@ -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