Skip to content

Merge pull request #69 from davidgiven/ab #14

Merge pull request #69 from davidgiven/ab

Merge pull request #69 from davidgiven/ab #14

Workflow file for this run

name: Autorelease
on:
push:
branches:
- "master"
concurrency:
group: environment-release-${{ github.head_ref }}
cancel-in-progress: true
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: apt
run: |
sudo apt update
sudo apt install cpmtools flex bison libreadline-dev libz80ex-dev lua5.2
- name: build-ack
run: |
git clone --depth=1 https://github.com/davidgiven/ack.git
make -C ack PREFIX=$HOME +ack-cpm
make -C ack PREFIX=$HOME install
- name: make
run: PATH=$PATH:$HOME/bin make
- name: date
run: |
echo "RELEASE_DATE=$(date --rfc-3339=date)" >> ${GITHUB_ENV}
- name: tag
run: |
git config user.name "davidgiven"
git config user.email "dg@cowlark.com"
git tag -f dev
git push -f origin dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: delete-old-assets
uses: mknejp/delete-release-assets@v1
with:
token: ${{ github.token }}
tag: dev
assets: |
pn8510.img
pn8800.img
brotherop2.img
lw30.img
wp1.img
kayproii.img
nc200.img
wp2450.img
wp2450ds.img
fail-if-no-assets: false
- name: release
uses: softprops/action-gh-release@v1
with:
name: Development build ${{ env.RELEASE_DATE }}
files: |
pn8510.img
pn8800.img
lw30.img
wp1.img
kayproii.img
nc200.img
wp2450.img
tag_name: dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}