Skip to content

Commit

Permalink
build: Change to softprops/action-gh-release
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Aug 14, 2023
1 parent 14eac1c commit ed794ec
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ jobs:
echo "RELEASE_NAME=Pre-Release ${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "PRERELEASE=true" >> $GITHUB_ENV
./.deploy/gen_nightly_info.sh
- uses: actions/create-release@v1
- uses: softprops/action-gh-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_VERSION }}
release_name: ${{ env.RELEASE_NAME }}
name: ${{ env.RELEASE_NAME }}
body_path: RELEASEINFO.md
#draft: true
prerelease: ${{ env.PRERELEASE }}
Expand All @@ -86,24 +86,20 @@ jobs:
run: ./do_build.sh
- name: "Sysroot Build with Mingw-w64"
run: ./do_sysroot.sh
- uses: actions/upload-release-asset@v1
- name: "Upload Release Asset"
if: matrix.arch == 'x86-64'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release_job.outputs.upload_url }}
asset_path: rtl_433-win-x64.zip
asset_name: rtl_433-win-x64-${{ needs.release_job.outputs.release_version }}.zip
asset_content_type: application/zip
- uses: actions/upload-release-asset@v1
run: |
mv rtl_433-win-x64.zip rtl_433-win-x64-${{ needs.release_job.outputs.release_version }}.zip
gh release upload ${{ needs.release_job.outputs.release_version }} rtl_433-win-x64-${{ needs.release_job.outputs.release_version }}.zip
- name: "Upload Release Asset"
if: matrix.arch == 'x86-64'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release_job.outputs.upload_url }}
asset_path: rtl_433-win-x32.zip
asset_name: rtl_433-win-x32-${{ needs.release_job.outputs.release_version }}.zip
asset_content_type: application/zip
run: |
mv rtl_433-win-x32.zip rtl_433-win-x32-${{ needs.release_job.outputs.release_version }}.zip
gh release upload ${{ needs.release_job.outputs.release_version }} rtl_433-win-x32-${{ needs.release_job.outputs.release_version }}.zip
build_msvc_job:
needs: [downloads_job, release_job]
Expand Down Expand Up @@ -210,15 +206,17 @@ jobs:
cp rtl_433/.deploy/WINDOWS-MSVC.txt dist/README.txt
ls -al dist
7z a rtl_433-win-msvc-x64.zip ./dist/*
- uses: actions/upload-release-asset@v1
- name: "Upload Release Asset"
if: matrix.os == 'windows-2019' && matrix.platform == 'x64'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release_job.outputs.upload_url }}
asset_path: ${{ runner.workspace }}/rtl_433-win-msvc-x64.zip
asset_name: rtl_433-win-msvc-x64-${{ needs.release_job.outputs.release_version }}.zip
asset_content_type: application/zip
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
shell: bash
working-directory: ${{ runner.workspace }}
run: |
mv rtl_433-win-msvc-x64.zip rtl_433-win-msvc-x64-${{ needs.release_job.outputs.release_version }}.zip
gh release upload ${{ needs.release_job.outputs.release_version }} rtl_433-win-msvc-x64-${{ needs.release_job.outputs.release_version }}.zip
build_linux_job:
strategy:
Expand Down Expand Up @@ -346,11 +344,8 @@ jobs:
--url https://triq.org/
ls -al
ls -al "${PWD}/dist"
- uses: actions/upload-release-asset@v1
- name: "Upload Release Asset"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release_job.outputs.upload_url }}
asset_path: rtl433_${{ needs.release_job.outputs.release_version }}-1${{ matrix.distro }}_${{ matrix.arch }}.deb
asset_name: rtl433_${{ needs.release_job.outputs.release_version }}-1${{ matrix.distro }}_${{ matrix.arch }}.deb
asset_content_type: application/vnd.debian.binary-package
run: |
gh release upload ${{ needs.release_job.outputs.release_version }} rtl433_${{ needs.release_job.outputs.release_version }}-1${{ matrix.distro }}_${{ matrix.arch }}.deb

0 comments on commit ed794ec

Please sign in to comment.