Skip to content

Commit d070b48

Browse files
committed
Automate Aminet publication
1 parent 98d54b2 commit d070b48

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/amiga-release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
build:
1111
name: MUI - ${{ matrix.platform.name }}
1212
runs-on: ubuntu-latest
13+
environment: aminet
1314

1415
strategy:
1516
matrix:
@@ -60,3 +61,21 @@ jobs:
6061
files: dist/tmp/*
6162
env:
6263
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
65+
- name: Install LFTP
66+
run: sudo apt-get install -y lftp
67+
68+
- name: Publish release on Aminet
69+
env:
70+
FTP_HOST: ${{ secrets.FTP_SERVER }}
71+
FTP_USER: ${{ secrets.FTP_USERNAME }}
72+
FTP_PASS: ${{ secrets.FTP_PASSWORD }}
73+
run: |
74+
lftp -c "
75+
set ssl:verify-certificate no;
76+
open -u $FTP_USER,$FTP_PASS $FTP_HOST;
77+
cd /new;
78+
mput ./dist/tmp/*.lha;
79+
mput ./dist/tmp/*.readme;
80+
bye
81+
"

0 commit comments

Comments
 (0)