Skip to content

Commit

Permalink
Revert "[CI] Replace set-output command with environment files"
Browse files Browse the repository at this point in the history
This reverts commit 8814e5d.
  • Loading branch information
manisandro committed Jan 29, 2023
1 parent d3a809c commit d64490e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ jobs:
else
VERSION=ci-latest-$(basename ${{ github.ref }})
fi
echo "version=$VERSION" >> $GITHUB_ENV
echo "##[set-output name=version;]$VERSION"
- name: Build application
run: |
./packaging/win32/makeinstaller.sh i686 qt5 nodebug ${{ env.version }}
./packaging/win32/makeinstaller.sh x86_64 qt5 nodebug ${{ env.version }}
./packaging/win32/makeinstaller.sh x86_64 gtk nodebug ${{ env.version }}
./packaging/win32/makeinstaller.sh i686 qt5 nodebug ${{ steps.version_number.outputs.version }}
./packaging/win32/makeinstaller.sh x86_64 qt5 nodebug ${{ steps.version_number.outputs.version }}
./packaging/win32/makeinstaller.sh x86_64 gtk nodebug ${{ steps.version_number.outputs.version }}
- name: Reset ci-latest tag
run: |
VERSION=${{ env.version }}
VERSION=${{ steps.version_number.outputs.version }}
git config --global user.email "[email protected]"
git config --global user.name "Github CI"
git config --global --add safe.directory /__w/gImageReader/gImageReader
Expand All @@ -55,7 +55,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.version }}
tag_name: ${{ steps.version_number.outputs.version }}
release_name: CI Build
draft: false
prerelease: ${{ !startsWith(github.ref, 'refs/tags/') }}
Expand All @@ -66,7 +66,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/mingw32-qt5/gImageReader_${{ env.version }}_qt5_i686_portable.zip
asset_path: ./build/mingw32-qt5/gImageReader_${{ steps.version_number.outputs.version }}_qt5_i686_portable.zip
asset_name: gImageReader_latest_qt5_i686_portable.zip
asset_content_type: application/zip

Expand All @@ -76,7 +76,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/mingw32-qt5/gImageReader_${{ env.version }}_qt5_i686.exe
asset_path: ./build/mingw32-qt5/gImageReader_${{ steps.version_number.outputs.version }}_qt5_i686.exe
asset_name: gImageReader_latest_qt5_i686.exe
asset_content_type: application/x-dosexec

Expand All @@ -86,7 +86,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/mingw64-qt5/gImageReader_${{ env.version }}_qt5_x86_64_portable.zip
asset_path: ./build/mingw64-qt5/gImageReader_${{ steps.version_number.outputs.version }}_qt5_x86_64_portable.zip
asset_name: gImageReader_latest_qt5_x86_64_portable.zip
asset_content_type: application/zip

Expand All @@ -96,7 +96,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/mingw64-qt5/gImageReader_${{ env.version }}_qt5_x86_64.exe
asset_path: ./build/mingw64-qt5/gImageReader_${{ steps.version_number.outputs.version }}_qt5_x86_64.exe
asset_name: gImageReader_latest_qt5_x86_64.exe
asset_content_type: application/x-dosexec

Expand All @@ -106,7 +106,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/mingw64-gtk/gImageReader_${{ env.version }}_gtk_x86_64_portable.zip
asset_path: ./build/mingw64-gtk/gImageReader_${{ steps.version_number.outputs.version }}_gtk_x86_64_portable.zip
asset_name: gImageReader_latest_gtk_x86_64_portable.zip
asset_content_type: application/zip

Expand All @@ -116,6 +116,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/mingw64-gtk/gImageReader_${{ env.version }}_gtk_x86_64.exe
asset_path: ./build/mingw64-gtk/gImageReader_${{ steps.version_number.outputs.version }}_gtk_x86_64.exe
asset_name: gImageReader_latest_gtk_x86_64.exe
asset_content_type: application/x-dosexec

0 comments on commit d64490e

Please sign in to comment.