Skip to content

Commit

Permalink
Fix github actions yaml 7
Browse files Browse the repository at this point in the history
  • Loading branch information
lbesnard committed May 30, 2024
1 parent 2fbc182 commit 7f0f2df
Showing 1 changed file with 1 addition and 38 deletions.
39 changes: 1 addition & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,7 @@ jobs:
- name: Build package
run: poetry build

# - name: Upload builds
#uses: actions/upload-artifact@v4
#with:
#name: built-binary
#path: |
#dist/*.whl
#dist/*.tar.gz

# Configure git for committing version bump
# Configure git for committing version bump
- name: Configure git for committing version bump
run: |
git config --global user.name "github-actions[bot]"
Expand All @@ -86,7 +78,6 @@ jobs:
git add pyproject.toml
git commit -m "Bump version to $NEW_VERSION"
- name: Push version bump
run: |
git push origin HEAD:main
Expand All @@ -103,38 +94,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Push version bump
#run: |
#git push origin HEAD:main
#git tag -a v${{ env.new_version }} -m "Release v${{ env.new_version }}"
#git push origin v${{ env.new_version }}
#env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#- name: Push version bump
#run: |
#git tag -a v${{ env.new_version }} -m "Release v${{ env.new_version }}"
#git push origin HEAD:main --follow-tags
#env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# # Push version bump
#- name: Push version bump
#run: |
#git checkout ${{ env.default_branch }}
#if git tag -l "v${{ env.new_version }}"; then
#git tag -d "v${{ env.new_version }}"
#git push origin :refs/tags/v${{ env.new_version }}
#fi
#git tag -a v${{ env.new_version }} -m "Release v${{ env.new_version }}"
#git push origin ${{ env.default_branch }} --tags
#env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install GitHub CLI
run: |
sudo apt-get install gh
- name: Create GitHub release
run: |
gh release create v${{ env.new_version }} --generate-notes
Expand Down

0 comments on commit 7f0f2df

Please sign in to comment.