mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 09:35:09 +02:00
059474f512
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.5.0 to 2.6.1. - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/a06a81a03ee405af7f2048a818ed3f03bbf83c7b...153bb8e04406b158c6c84fc1615b65b24149a1fe) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-version: 2.6.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: Generate Source Tarball
|
|
|
|
# Trigger whenever a release is created
|
|
on:
|
|
release:
|
|
types:
|
|
- created
|
|
push:
|
|
tags:
|
|
- "v*.*"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Archive
|
|
id: archive
|
|
run: |
|
|
VERSION=$GITHUB_REF_NAME
|
|
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
|
|
mv /tmp/$PKGNAME .
|
|
find $PKGNAME/ffmpeg -name '*.a' -delete || true
|
|
find $PKGNAME/ffmpeg -name '*.lib' -delete || true
|
|
find $PKGNAME/ext -name '*.dylib' -delete || true
|
|
find $PKGNAME/ext -name '*.lib' -delete || true
|
|
find $PKGNAME/ext -name '*.so.*' -delete || true
|
|
rm -rf $PKGNAME/ext/rapidjson/thirdparty/gtest || true
|
|
sed -i "s;unknown;${VERSION};" $PKGNAME/git-version.cmake || true
|
|
TARBALL=$PKGNAME.tar.xz
|
|
tar cJf $TARBALL $PKGNAME
|
|
echo "tarball=$TARBALL" >> $GITHUB_OUTPUT
|
|
|
|
- name: Upload tarball
|
|
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
|
|
with:
|
|
files: ${{ steps.archive.outputs.tarball }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|