Skip to content

Commit dc9d245

Browse files
committed
Added upload downloader tester workflow to upload downloader_test to the latest release. Simplified pack workflows.
1 parent f7d82e9 commit dc9d245

5 files changed

Lines changed: 49 additions & 29 deletions

File tree

.github/pack_launcher.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/pack_pc_launcher.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/pack_launcher.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ jobs:
2323
DEFAULT_BASE_PATH: ${{ runner.temp }}/downloader_test
2424

2525
- name: Pack Launcher
26-
run: ./.github/pack_launcher.sh
26+
run: |
27+
set -euo pipefail
28+
29+
if ! gh release list | grep -q "latest" ; then
30+
gh release create "latest" || true
31+
sleep 15s
32+
fi
33+
34+
cp downloader.sh update.sh
35+
zip "MiSTer_Downloader.zip" update.sh
36+
gh release upload "latest" "MiSTer_Downloader.zip" --clobber
2737
env:
2838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pack_pc_launcher.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ jobs:
3939
- uses: actions/checkout@v4
4040

4141
- name: Pack PC Launcher
42-
run: chmod +x .github/pack_pc_launcher.sh && ./.github/pack_pc_launcher.sh
42+
run: |
43+
set -euo pipefail
44+
45+
if ! gh release list | grep -q "latest" ; then
46+
gh release create "latest" || true
47+
sleep 15s
48+
fi
49+
50+
cd src
51+
cp pc_launcher.py downloader_pc_launcher.py
52+
zip "MiSTer_Downloader_PC_Launcher.zip" downloader_pc_launcher.py
53+
gh release upload "latest" "MiSTer_Downloader_PC_Launcher.zip" --clobber
4354
env:
4455
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Upload Downloader Tester
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/downloader_test.py'
7+
workflow_dispatch:
8+
9+
jobs:
10+
pack:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Upload to Release
17+
run: |
18+
set -euo pipefail
19+
if ! gh release list | grep -q "latest" ; then
20+
gh release create "latest" || true
21+
sleep 15s
22+
fi
23+
24+
gh release upload latest .github/downloader_test.py --clobber
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)