Skip to content

Commit

Permalink
[ci releases] Fix warning about set-output being deprecated (WebAssem…
Browse files Browse the repository at this point in the history
…bly#7315)

Use GITHUB_OUTPUT instead as github docs recommend.
  • Loading branch information
mcbarton authored Feb 27, 2025
1 parent 7142fa1 commit faaa985
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ jobs:
tar -czf $TARBALL binaryen-$VERSION
# on Windows, MSYS2 will strip the carriage return from CMake output
cmake -E sha256sum $TARBALL > $SHASUM
echo "::set-output name=tarball::$TARBALL"
echo "::set-output name=shasum::$SHASUM"
echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT
echo "SHASUM=$SHASUM" >> $GITHUB_OUTPUT
- name: archive-arm64
id: archive-arm64
Expand All @@ -87,19 +87,19 @@ jobs:
tar -czf $TARBALL binaryen-$VERSION
# on Windows, MSYS2 will strip the carriage return from CMake output
cmake -E sha256sum $TARBALL > $SHASUM
echo "::set-output name=tarball::$TARBALL"
echo "::set-output name=shasum::$SHASUM"
echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT
echo "SHASUM=$SHASUM" >> $GITHUB_OUTPUT
if: matrix.os == 'macos-latest'

- name: upload tarball
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
${{ steps.archive.outputs.tarball }}
${{ steps.archive.outputs.shasum }}
${{ steps.archive-arm64.outputs.tarball }}
${{ steps.archive-arm64.outputs.shasum }}
${{ steps.archive.outputs.TARBALL }}
${{ steps.archive.outputs.SHASUM }}
${{ steps.archive-arm64.outputs.TARBALL }}
${{ steps.archive-arm64.outputs.SHASUM }}
# Build with gcc 6.3 and run tests on Alpine Linux (inside chroot).
# Note: Alpine uses musl libc.
Expand Down Expand Up @@ -161,16 +161,16 @@ jobs:
mv install binaryen-$VERSION
tar -czf $TARBALL binaryen-$VERSION
cmake -E sha256sum $TARBALL > $SHASUM
echo "::set-output name=tarball::$TARBALL"
echo "::set-output name=shasum::$SHASUM"
echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT
echo "SHASUM=$SHASUM" >> $GITHUB_OUTPUT
- name: upload tarball
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
${{ steps.archive.outputs.tarball }}
${{ steps.archive.outputs.shasum }}
${{ steps.archive.outputs.TARBALL }}
${{ steps.archive.outputs.SHASUM }}
# Build using Emscripten to JavaScript+WebAssembly.
build-node:
Expand Down Expand Up @@ -227,13 +227,13 @@ jobs:
cp out/bin/wasm-opt* binaryen-$VERSION/
tar -czf $TARBALL binaryen-$VERSION
cmake -E sha256sum $TARBALL > $SHASUM
echo "::set-output name=tarball::$TARBALL"
echo "::set-output name=shasum::$SHASUM"
echo "TARBALL=$TARBALL" >> $GITHUB_OUTPUT
echo "SHASUM=$SHASUM" >> $GITHUB_OUTPUT
- name: upload tarball
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
${{ steps.archive.outputs.tarball }}
${{ steps.archive.outputs.shasum }}
${{ steps.archive.outputs.TARBALL }}
${{ steps.archive.outputs.SHASUM }}

0 comments on commit faaa985

Please sign in to comment.