Skip to content

Commit

Permalink
Update github_master.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Erdem Demir <[email protected]>
  • Loading branch information
erdemdmr authored Nov 15, 2024
1 parent 720766e commit 12ed0b3
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/github_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,33 +38,33 @@ jobs:
# Change version number on files
sed -i -e 's/'$current_release'/'$new_release'/g' setup.py iyzipay/iyzipay_resource.py VERSION pyproject.toml
#- name: Github Tasks
#run: |
#set -e
#git config user.name "iyzico-ci"
#git config user.email [email protected]
#git add .
#git commit -m "Automatic commit by iyzico-ci v${{env.NEW_RELEASE}}"
#git push origin master
#git tag -a v${{env.NEW_RELEASE}} -m "Automatic tag by iyzico-ci v${{env.NEW_RELEASE}}"
#git push origin v${{env.NEW_RELEASE}}
- name: Github Tasks
run: |
set -e
git config user.name "iyzico-ci"
git config user.email [email protected]
git add .
git commit -m "Automatic commit by iyzico-ci v${{env.NEW_RELEASE}}"
git push origin master
git tag -a v${{env.NEW_RELEASE}} -m "Automatic tag by iyzico-ci v${{env.NEW_RELEASE}}"
git push origin v${{env.NEW_RELEASE}}
#- name: Github Release
#run: |
- name: Github Release
run: |
# Use the new release version in release creation step
#echo "Creating release ${{env.NEW_RELEASE}}..."
#result=$( curl -# -XPOST -H "Authorization: token ${{secrets.TOKEN_GITHUB}}" -H "Content-Type: application/json" -H "Accept:application/json" --data-binary '{"tag_name": "v${{env.NEW_RELEASE}}","target_commitish": "master","name": "iyzipay-python ${{env.NEW_RELEASE}}","body": "version ${{env.NEW_RELEASE}}","draft": false,"prerelease": false}' https://api.github.com/repos/iyzico/iyzipay-python/releases )
#echo $result
#echo "GitHub release ${{env.NEW_RELEASE}} created!"
echo "Creating release ${{env.NEW_RELEASE}}..."
result=$( curl -# -XPOST -H "Authorization: token ${{secrets.TOKEN_GITHUB}}" -H "Content-Type: application/json" -H "Accept:application/json" --data-binary '{"tag_name": "v${{env.NEW_RELEASE}}","target_commitish": "master","name": "iyzipay-python ${{env.NEW_RELEASE}}","body": "version ${{env.NEW_RELEASE}}","draft": false,"prerelease": false}' https://api.github.com/repos/iyzico/iyzipay-python/releases )
echo $result
echo "GitHub release ${{env.NEW_RELEASE}} created!"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
#- name: Publish package
#uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
#with:
#user: __token__
#password: ${{ secrets.TOKEN_PYPI }}
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.TOKEN_PYPI }}

0 comments on commit 12ed0b3

Please sign in to comment.