-
Notifications
You must be signed in to change notification settings - Fork 4
64 lines (63 loc) · 2.62 KB
/
buildRelease.yml
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
56
57
58
59
60
61
62
63
64
name: 🧱 Build Release
on:
release:
types: [published]
# Add the LICENSE file to the release files
jobs:
release:
name: Upload Release Asset
runs-on: ubuntu-latest # linux required if you want to use docker
container:
image: walkero/docker4amigavbcc:latest-m68k
volumes:
- '${{ github.workspace }}:/opt/code'
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2
- name: 🏃 Running Make
run: make
- name: ➡️ Move to build folder
run: |
cp Mnemosyne /opt/code/build/
cp LICENSE /opt/code/build/
- name: 📁 Create Release folder
run: |
mkdir /opt/code/Release/
cp -a /opt/code/build/. /opt/code/Release/Mnemosyne-${{ github.event.release.tag_name }}
cp /opt/code/images/drawer_3.0.info /opt/code/Release/Mnemosyne-${{ github.event.release.tag_name }}.info
- name: 📦 Create LHA archive
run: |
cd /opt/code/Release/
lha -aq2o6 Mnemosyne-${{ github.event.release.tag_name }}.lha Mnemosyne-${{ github.event.release.tag_name }}/ Mnemosyne-${{ github.event.release.tag_name }}.info
- name: 🚀Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: /opt/code/Release/Mnemosyne-${{ github.event.release.tag_name }}.lha
asset_name: Mnemosyne-${{ github.event.release.tag_name }}.lha
asset_content_type: application/x-lzh-compressed
- name: 🎲 Uploading to Itch.io
uses: KikimoraGames/[email protected]
with:
butlerApiKey: ${{ secrets.BUTLER_API_KEY }}
buildChannel: LHA
itchGameId: Mnemosyne
itchUsername: arisamiga
buildNumber: ${{ github.event.release.tag_name }}
gameData: ${{ github.workspace }}/Release/Mnemosyne-${{ github.event.release.tag_name }}.lha
- name: 🗃️ Prepare Aminet Package
run: |
mkdir /opt/code/Release/Aminet-Release/
cp /opt/code/Release/Mnemosyne-${{ github.event.release.tag_name }}.lha /opt/code/Release/Aminet-Release/Mnemosyne.lha
cp /opt/code/aminet.readme /opt/code/Release/Aminet-Release/Mnemosyne.readme
- name: 📨 Uploading to Aminet
uses: SamKirkland/[email protected]
with:
server: main.aminet.net
port: 21
username: anonymous
password: ${{ secrets.ftp_password }}
server-dir: ./new/
local-dir: /opt/code/Release/Aminet-Release/