mirror of
https://github.com/libffi/libffi.git
synced 2026-01-26 10:07:53 +00:00
chore(.github/workflows): update tarball workflow to use softprops/action-gh-release
This commit is contained in:
parent
0947743f69
commit
172bfb41f4
12
.github/workflows/tarball.yml
vendored
12
.github/workflows/tarball.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
||||
|
||||
- name: Stamp snapshot version into configure.ac
|
||||
run: |
|
||||
VERSION="$(git describe --match 'v[0-9]*' --long --always | sed -e 's/^v//' -e 's/-/.dev./' -e 's/-/+g/')"
|
||||
VERSION="$(git describe --tags --long --match 'v[0-9]*' | sed -e 's/^v//' -e 's/-/.dev./' -e 's/-/+g/')"
|
||||
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
|
||||
|
||||
# 1) AC_INIT second argument
|
||||
@ -36,8 +36,10 @@ jobs:
|
||||
- name: Build dist tarball
|
||||
run: make dist
|
||||
|
||||
- name: Upload artefact
|
||||
uses: actions/upload-artifact@v4
|
||||
- name: Create (or update) “snapshots” release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
name: "libffi-${{ env.VERSION }}"
|
||||
path: "libffi-${{ env.VERSION }}.tar.*"
|
||||
tag_name: snapshots
|
||||
prerelease: true
|
||||
body: "Snapshot built from ${{ github.sha }}"
|
||||
files: libffi-${{ env.VERSION }}.tar.*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user