Skip to content

Commit

Permalink
Merge pull request #38 from jiro4989/hotfix/duplicated-ci-code
Browse files Browse the repository at this point in the history
fix: deprecated code (set-output)
  • Loading branch information
greymd authored Jan 7, 2023
2 parents d86dcc1 + 68d2f08 commit d17178e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set envs
id: vars
run: |
echo ::set-output name=ver::${GITHUB_REF/refs\/tags\/v/}
echo ver=${GITHUB_REF/refs\/tags\/v/} >> ${GITHUB_OUTPUT}
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -69,15 +69,15 @@ jobs:
run: |
_TAR=teip-${{ steps.vars.outputs.ver }}.${{ matrix.target }}.tar.gz
docker run -i "greymd/tar2rpm:1.0.1" < "$_TAR" > teip-${{ steps.vars.outputs.ver }}.${{ matrix.target }}.rpm
echo ::set-output name=sha256::$( sha256sum teip-${{ steps.vars.outputs.ver }}.${{ matrix.target }}.rpm | awk '{print $1}' )
echo sha256=$( sha256sum teip-${{ steps.vars.outputs.ver }}.${{ matrix.target }}.rpm | awk '{print $1}' ) >> ${GITHUB_OUTPUT}
- name: Build deb
id: deb
if: matrix.ext == 'deb'
run: |
_TAR=teip-${{ steps.vars.outputs.ver }}.${{ matrix.target }}.tar.gz
docker run -i "greymd/tar2deb:1.0.1" < "$_TAR" > teip-${{ steps.vars.outputs.ver }}.${{ matrix.target }}.deb
echo ::set-output name=sha256::$( sha256sum teip-${{ steps.vars.outputs.ver }}.${{ matrix.target }}.deb | awk '{print $1}' )
echo sha256=$( sha256sum teip-${{ steps.vars.outputs.ver }}.${{ matrix.target }}.deb | awk '{print $1}' ) >> ${GITHUB_OUTPUT}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
id: vars
shell: bash
run: |
echo ::set-output name=ver::${GITHUB_REF/refs\/tags\/v/}
echo ver=${GITHUB_REF/refs\/tags\/v/} >> ${GITHUB_OUTPUT}
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -150,7 +150,7 @@ jobs:
& "C:\\Program Files\\Git\\usr\\bin\\sed.exe" -i 's/#define MyAppVersion \"0.0.0\"/#define MyAppVersion \"${{ steps.vars.outputs.ver }}\"/' .\windows\installer.iss
& "${Env:ProgramFiles(x86)}\Inno Setup 6\iscc.exe" windows\installer.iss
Move-Item windows\Output\teip_installer.exe .
echo "::set-output name=sha256::$(Get-FileHash .\\teip_installer.exe -Algorithm SHA256 | Select-Object -ExpandProperty Hash)"
echo "sha256=$(Get-FileHash .\\teip_installer.exe -Algorithm SHA256 | Select-Object -ExpandProperty Hash)" >> ${GITHUB_OUTPUT}
Rename-Item teip_installer.exe teip_installer-${{ steps.vars.outputs.ver }}-${{ matrix.target }}.${{ matrix.ext }}
- name: Upload binaries to release for Windows
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
- name: Set envs
id: vars
run: |
echo ::set-output name=ver::${GITHUB_REF/refs\/tags\/v/}
echo ver=${GITHUB_REF/refs\/tags\/v/} >> ${GITHUB_OUTPUT}
- name: Checkout code
uses: actions/checkout@v2
Expand Down

0 comments on commit d17178e

Please sign in to comment.