gslaplay/.github/workflows/main.yml

46 lines
1.4 KiB
YAML

on: [push]
jobs:
cicd_pipeline:
runs-on: ubuntu-latest
name: Run assembly and disk image CICD pipeline
steps:
# CHECKOUT AND ASSEMBLE ON EVERY PUSH, ANY BRANCH
- uses: actions/checkout@v1
- name: Install Merlin
uses: digarok/install-merlin32-action@v0.1.3
- name: Assemble Source
run: |
merlin32 -V ./macros/ asm/link.s
- name: Install Cadius
uses: digarok/install-cadius-action@v0.1.3
- name: Make Bootable ProDOS Image
if: startsWith(github.ref, 'refs/tags/v')
run: |
cadius createvolume gslaplay.po gslaplay 800KB >/dev/null
cadius addfile gslaplay.po /gslaplay/ asm/play.sys16 >/dev/null
# EVERYTHING BELOW IS ONLY WHEN VERSION TAGS PUSHED (i.e. tag like "v0.1")
- name: Create Release
id: create_release
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
- name: Upload Release Asset - 800KB ProDOS Image
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./gslaplay.po
asset_name: gslaplay.po
asset_content_type: application/octet-stream