-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.56 KB
/
release.yml
File metadata and controls
55 lines (46 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build and Release PSP Package
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake pkgconf libreadline8 libusb-0.1 libgpgme11 libarchive-tools fakeroot wget zip rsync
- name: Install PSP SDK (prebuilt)
run: |
wget https://github.com/pspdev/pspdev/releases/latest/download/pspdev-ubuntu-latest-x86_64.tar.gz
tar -xvf pspdev-ubuntu-latest-x86_64.tar.gz -C "$HOME"
export PSPDEV="$HOME/pspdev"
export PATH="$PATH:$PSPDEV/bin"
psp-config --pspdev-path
- name: Build project
run: |
export PSPDEV="$HOME/pspdev"
export PATH="$PATH:$PSPDEV/bin"
make
- name: Create structured release archive
run: |
TAG="${GITHUB_REF_NAME}"
PKG="BounceBack-${TAG}.zip"
mkdir -p package/BounceBack
rsync -a --exclude='bounce_save.dat' release/ package/BounceBack/
(cd package && zip -r "../${PKG}" BounceBack)
sha256sum "${PKG}" > "${PKG}.sha256"
- name: Create GitHub release and upload archive only
uses: softprops/action-gh-release@v2
with:
files: |
BounceBack-*.zip
BounceBack-*.zip.sha256
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}