From 5af6cab7ce44e6bd8e0f217d03a36a0901aa9128 Mon Sep 17 00:00:00 2001 From: Jose Stovall Date: Tue, 7 Jun 2022 09:53:14 -0500 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2873f60..fb02dd8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,3 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - name: Build MOTG Cross-Platform on: @@ -35,6 +32,12 @@ jobs: - name: Build with PyInstaller run: | pyinstaller -D -F -n generate -c -n MOTD-${{matrix.os}} ./generate.py + - name: Git Tag Generator + id: gen_tag + uses: ChloePlanet/github-tag-action@2.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + WITH_V: true - name: Create Release uses: actions/github-script@v2 with: @@ -48,7 +51,7 @@ jobs: const release = await github.repos.createRelease({ owner, repo, - tag_name: process.env.GITHUB_REF, + tag_name: '${{ steps.gen_tag.outputs.new_tag }}', prerelease: true, target_commitish: sha }); @@ -66,23 +69,3 @@ jobs: }); } -# - name: Create Release -# id: create_release -# uses: actions/create-release@v1 -# env: -# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} -# with: -# tag_name: ${{github.ref}} -# release_name: Dev Release ${{github.ref}} -# prerelease: true -# - name: Upload Release Artifact -# id: upload-release-asset -# uses: actions/upload-release-asset@v1 -# env: -# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} -# with: -# upload_url: ${{steps.create_release.outputs.upload_url}} -# asset_path: ./dist/MOTD-${{matrix.os}}.exe -# asset_name: MOTD ${{ matrix.os }} -# asset_content_type: a[[;ocatopm -