diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6c4334c..e03cd05 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -4,6 +4,8 @@ on: push jobs: build: + name: >- + Build and Package 📦 if: ${{ startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/release' }} strategy: matrix: @@ -76,16 +78,16 @@ jobs: build/*.app/**/* overwrite: true - publish-to-testpypi: - name: Publish Python 🐍 distribution 📦 to TestPyPI + publish-to-pypi: + name: >- + Publish Python 🐍 distribution 📦 to PyPI + if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes needs: - build runs-on: ubuntu-latest - environment: - name: testpypi - url: https://test.pypi.org/p/ytm2spt - + name: pypi + url: https://pypi.org/p/ytm2spt permissions: id-token: write # IMPORTANT: mandatory for trusted publishing @@ -95,15 +97,15 @@ jobs: with: name: python-package-distributions path: dist/ - - name: Publish distribution 📦 to TestPyPI + - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: https://test.pypi.org/legacy/ - + release: + name: >- + Create a GitHub Release 🚀 needs: - build - - publish-to-testpypi + - publish-to-pypi runs-on: ubuntu-latest permissions: @@ -134,17 +136,17 @@ jobs: - name: Zip Windows Executable run: | cd *windows-build - zip -9 ytm2spt-${{ github.ref_name }}-windows.zip *-installer.exe + zip -9 ytm2spt-windows.zip *-installer.exe - name: Zip Linux Executable run: | cd *linux-build - tar -cavf ytm2spt-${{ github.ref_name }}-linux.tar.gz *.bin + tar -cavf ytm2spt-linux.tar.gz *.bin - name: Zip MacOS Executable run: | cd *macos-build - zip -r -9 ytm2spt-${{ github.ref_name }}-macos.zip *.app + zip -r -9 ytm2spt-macos.zip *.app - name: GitHub Release uses: softprops/action-gh-release@v2 @@ -152,7 +154,7 @@ jobs: draft: true generate_release_notes: true files: | - *build/ytm2spt-${{ github.ref_name }}-windows.zip - *build/ytm2spt-${{ github.ref_name }}-linux.tar.gz - *build/ytm2spt-${{ github.ref_name }}-macos.zip + *build/ytm2spt-windows.zip + *build/ytm2spt-linux.tar.gz + *build/ytm2spt-macos.zip dist/* diff --git a/pyproject.toml b/pyproject.toml index 6a86398..e17c861 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ytm2spt" -version = "1.0.3-rc1" +version = "1.1.0" authors = [ { name="Abhishek M J", email="abhishekmj303@gmail.com" }, ]