Skip to content

Release 1.1.1

Release 1.1.1 #39

Workflow file for this run

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/