CI: update release workflow to non-deprecated actions
github continues to deprecate actions and idioms in their CI system. hopefully these changes will last for a while and maintaining a simple CI task doesn't turn into a neverending story.
This commit is contained in:
parent
942d0c6b03
commit
72b93f6d4b
41
.github/workflows/release_tarball.yml
vendored
41
.github/workflows/release_tarball.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
@ -26,36 +26,15 @@ jobs:
|
|||||||
PKGNAME="tinyproxy-$VERSION"
|
PKGNAME="tinyproxy-$VERSION"
|
||||||
./configure
|
./configure
|
||||||
make dist
|
make dist
|
||||||
echo "::set-output name=tarball_xz::${PKGNAME}.tar.xz"
|
echo "tarball_xz=${PKGNAME}.tar.xz" >> "$GITHUB_OUTPUT"
|
||||||
echo "::set-output name=tarball_gz::${PKGNAME}.tar.gz"
|
echo "tarball_gz=${PKGNAME}.tar.gz" >> "$GITHUB_OUTPUT"
|
||||||
echo "::set-output name=tarball_bz2::${PKGNAME}.tar.bz2"
|
echo "tarball_bz2=${PKGNAME}.tar.bz2" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: upload tarball_xz
|
- name: upload tarballs
|
||||||
uses: actions/upload-release-asset@v1
|
uses: softprops/action-gh-release@v2
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
files: |
|
||||||
asset_path: ./${{ steps.archive.outputs.tarball_xz }}
|
${{ steps.archive.outputs.tarball_xz }}
|
||||||
asset_name: ${{ steps.archive.outputs.tarball_xz }}
|
${{ steps.archive.outputs.tarball_gz }}
|
||||||
asset_content_type: application/x-xz
|
${{ steps.archive.outputs.tarball_bz2 }}
|
||||||
|
|
||||||
- name: upload tarball_gz
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
|
||||||
asset_path: ./${{ steps.archive.outputs.tarball_gz }}
|
|
||||||
asset_name: ${{ steps.archive.outputs.tarball_gz }}
|
|
||||||
asset_content_type: application/x-gzip
|
|
||||||
|
|
||||||
- name: upload tarball_bz2
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
|
||||||
asset_path: ./${{ steps.archive.outputs.tarball_bz2 }}
|
|
||||||
asset_name: ${{ steps.archive.outputs.tarball_bz2 }}
|
|
||||||
asset_content_type: application/x-bzip2
|
|
||||||
|
Loading…
Reference in New Issue
Block a user