Skip to content

Commit

Permalink
backport CI fixes from @Azathothas
Browse files Browse the repository at this point in the history
* generate version file

* setup versioned releases
  • Loading branch information
Samueru-sama authored Dec 1, 2024
1 parent 0664987 commit eba5b84
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 8 deletions.
60 changes: 54 additions & 6 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,23 @@ jobs:
mkdir dist
mv *.AppImage* dist/
- name: Check version file
run: |
cat ~/version
echo "APP_VERSION=$(cat ~/version)" >> "${GITHUB_ENV}"
- name: Upload artifact
uses: actions/[email protected]
with:
name: AppImage
path: 'dist'


- name: Upload version file
uses: actions/[email protected]
with:
name: version
path: ~/version

release:
needs: [build]
permissions: write-all
Expand All @@ -44,14 +55,51 @@ jobs:
- uses: actions/[email protected]
with:
name: AppImage
- uses: actions/[email protected]
with:
name: version

- name: Read version
run: |
cat version
export VERSION="$(<version)"
echo "APP_VERSION=${VERSION}" >> "${GITHUB_ENV}"
#Version Release
- name: Del Previous Release
run: |
gh release delete "${APP_VERSION}" --repo "${GITHUB_REPOSITORY}" --cleanup-tag -y
env:
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
continue-on-error: true
- name: Continuous Releaser
uses: softprops/action-gh-release@v2
with:
name: "PPSSPP AppImage ${{ env.APP_VERSION }}"
tag_name: "${{ env.APP_VERSION }}"
prerelease: false
draft: false
generate_release_notes: false
make_latest: true
files: |
*.AppImage*
continue-on-error: false

- name: release
uses: marvinpinto/action-automatic-releases@latest
#Snapshot Release
- name: Get Date
run: |
SNAPSHOT_TAG="$(date --utc +'%Y%m%d-%H%M%S')"
echo SNAPSHOT_TAG="${SNAPSHOT_TAG}" >> "${GITHUB_ENV}"
continue-on-error: false
- name: Snapshot Releaser
uses: softprops/action-gh-release@v2
with:
title: Continuous build
automatic_release_tag: continuous
name: "Snapshot ${{ env.APP_VERSION }}"
tag_name: "${{ env.SNAPSHOT_TAG }}"
prerelease: false
draft: false
generate_release_notes: false
make_latest: false
files: |
*.AppImage*
repo_token: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: false
5 changes: 3 additions & 2 deletions ppsspp-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ ICON=ppsspp.png

export ARCH="$(uname -m)"
export APPIMAGE_EXTRACT_AND_RUN=1
export VERSION="$(pacman -Q $PACKAGE | awk 'NR==1 {print $2; exit}')"
export VERSION=$(pacman -Q "$PACKAGE" | awk 'NR==1 {print $2; exit}')
echo "$VERSION" > ~/version

UPINFO="gh-releases-zsync|$(echo $GITHUB_REPOSITORY | tr '/' '|')|continuous|*$ARCH.AppImage.zsync"
UPINFO="gh-releases-zsync|$(echo "$GITHUB_REPOSITORY" | tr '/' '|')|latest|*$ARCH.AppImage.zsync"
LIB4BN="https://raw.githubusercontent.com/VHSgunzo/sharun/refs/heads/main/lib4bin"
URUNTIME=$(wget -q https://api.github.com/repos/VHSgunzo/uruntime/releases -O - \
| sed 's/[()",{} ]/\n/g' | grep -oi "https.*appimage.*dwarfs.*$ARCH$" | head -1)
Expand Down

0 comments on commit eba5b84

Please sign in to comment.