-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
483914c
commit 70f5c70
Showing
1 changed file
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Autorelease | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 1 | ||
- name: apt | ||
run: | | ||
sudo apt update | ||
sudo apt install cpmtools bazel-bootstrap 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: | | ||
cd cpm65 | ||
git config user.name "davidgiven" | ||
git config user.email "[email protected]" | ||
git tag -f dev | ||
git push -f origin dev | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: export | ||
run: > | ||
for a in brotherpowernote brotherop2 brotherwp1 kayproii nc200 wp2450ds; do | ||
ln bazel-bin/arch/$a/diskimage.img $a.img; done | ||
- name: delete-old-assets | ||
uses: mknejp/delete-release-assets@v1 | ||
with: | ||
token: ${{ github.token }} | ||
tag: dev | ||
assets: | | ||
browerpowernote.img | ||
brotherop2.img | ||
brotherwp1.img | ||
kayproii.img | ||
nc200.img | ||
wp2450ds.img | ||
fail-if-no-assets: false | ||
|
||
- name: release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: Development build ${{ env.RELEASE_DATE }} | ||
files: | | ||
browerpowernote.img | ||
brotherop2.img | ||
brotherwp1.img | ||
kayproii.img | ||
nc200.img | ||
wp2450ds.img | ||
tag_name: dev | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|