diff --git a/.github/workflows/BuildExecutable.yaml b/.github/workflows/BuildExecutable.yaml index e1ab2e4..7ae2439 100644 --- a/.github/workflows/BuildExecutable.yaml +++ b/.github/workflows/BuildExecutable.yaml @@ -14,6 +14,13 @@ jobs: - name: Checkout code uses: actions/checkout@v2 + - name: Make package name + run: | + ver=${{ github.ref }} + ver=${ver##*/} + echo "PKG_NAME=${{ env.EXE_NAME }}_${ver//./_}" >> $GITHUB_ENV + shell: bash + - name: Set up Python 3.7 uses: actions/setup-python@v1 with: @@ -31,7 +38,7 @@ jobs: - name: Compress release package run: | mv dist/${{ env.EXE_NAME }}.exe ${{ env.EXE_NAME }}.exe - 7z a -tzip ${{ env.EXE_NAME }}.zip '@7zip_list_file.txt' + 7z a -tzip ${{ env.PKG_NAME }}.zip '@7zip_list_file.txt' - name: Create Release id: create_release @@ -51,6 +58,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{ env.EXE_NAME }}.zip - asset_name: ${{ env.EXE_NAME }}.zip + asset_path: ${{ env.PKG_NAME }}.zip + asset_name: ${{ env.PKG_NAME }}.zip asset_content_type: application/zip diff --git a/.github/workflows/python-checks.yaml b/.github/workflows/python-checks.yaml index 127fe34..37c8e4f 100644 --- a/.github/workflows/python-checks.yaml +++ b/.github/workflows/python-checks.yaml @@ -38,6 +38,16 @@ jobs: - name: Checkout code uses: actions/checkout@v2 + - name: Make package name + run: | + ver=${{ github.ref }} + ver=${ver##*/} + echo "PKG_NAME=${{ env.EXE_NAME }}_${ver//./_}" >> $GITHUB_ENV + shell: bash + + - name: Test result + run: echo ${{ env.PKG_NAME }} + - name: Set up Python 3.7 uses: actions/setup-python@v1 with: @@ -55,4 +65,4 @@ jobs: - name: Compress release package run: | mv dist/${{ env.EXE_NAME }}.exe ${{ env.EXE_NAME }}.exe - 7z a -tzip ${{ env.EXE_NAME }}.zip '@7zip_list_file.txt' + 7z a -tzip ${{ env.PKG_NAME }}.zip '@7zip_list_file.txt'