Skip to content

Commit

Permalink
Update python-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rafacc87 authored Aug 22, 2024
1 parent f2d6597 commit 154968d
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,28 @@ jobs:
# - name: Test with pytest
# run: |
# pytest
- name: Build executable
run: |
pyinstaller --onefile app.py
- name: Get version number
id: get_version
run: echo "version=v1.0.$(git rev-list --count HEAD)" >> $GITHUB_ENV
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
tag_name: ${{ env.version }}
release_name: Release ${{ env.version }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/app
asset_name: PlayRanker-${{ env.version }}
asset_content_type: application/octet-stream
# - name: Build executable
# run: |
# pyinstaller --onefile app.py
# - name: Get version number
# id: get_version
# run: echo "version=v1.0.$(git rev-list --count HEAD)" >> $GITHUB_ENV
# - name: Create GitHub Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# with:
# tag_name: ${{ env.version }}
# release_name: Release ${{ env.version }}
# draft: false
# prerelease: false
# - name: Upload Release Asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./dist/app
# asset_name: PlayRanker-${{ env.version }}
# asset_content_type: application/octet-stream

0 comments on commit 154968d

Please sign in to comment.