-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (36 loc) · 1.36 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
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/
- name: 📁 Create Release folder
run:
cp -a /opt/code/build/. /opt/code/build/Mnemosyne-${{ github.event.release.tag_name }}
cp /opt/code/images/drawer_3.0.info /opt/code/build/Mnemosyne-${{ github.event.release.tag_name }}.info
cd /opt/code/build/
- name: 📦 Create LHA archive
run: lha -aq2o6 Mnemosyne.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: ./build/Mnemosyne.lha
asset_name: Mnemosyne.lha
asset_content_type: application/x-lzh-compressed