mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 07:20:49 +00:00
Merge pull request #15762 from rofl0r/ci_release_fix
CI: also upload release source tarball on tag push
This commit is contained in:
commit
94c98ccc10
17
.github/workflows/tarball.yml
vendored
17
.github/workflows/tarball.yml
vendored
@ -5,6 +5,9 @@ on:
|
||||
release:
|
||||
types:
|
||||
- created
|
||||
push:
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -19,7 +22,9 @@ jobs:
|
||||
- name: archive
|
||||
id: archive
|
||||
run: |
|
||||
VERSION=$(printf "%s\n" ${{ github.event.release.tag_name }} | sed 's/^v//')
|
||||
VERSION=${GITHUB_REF##*/}
|
||||
test -z "$VERSION" && VERSION=${{ github.event.release.tag_name }}
|
||||
VERSION=$(printf "%s\n" "$VERSION" | sed 's/^v//')
|
||||
PKGNAME="ppsspp-$VERSION"
|
||||
mkdir -p /tmp/$PKGNAME
|
||||
mv * /tmp/$PKGNAME
|
||||
@ -38,11 +43,7 @@ jobs:
|
||||
echo "::set-output name=tarball::$TARBALL"
|
||||
|
||||
- name: upload tarball
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
upload_url: ${{ github.event.release.upload_url }}
|
||||
asset_path: ./${{ steps.archive.outputs.tarball }}
|
||||
asset_name: ${{ steps.archive.outputs.tarball }}
|
||||
asset_content_type: application/x-xz
|
||||
files: ${{ steps.archive.outputs.tarball }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Loading…
Reference in New Issue
Block a user