0.32.3 #85
Workflow file for this run
This file contains hidden or 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
name: release | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: setup eli | |
uses: alis-is/setup-eli@v1 | |
- name: inject version | |
run: | | |
eli .github/inject_version.lua ${{ github.ref_name }} | |
- name: test ami | |
run: | | |
eli ./tests/all.lua | |
- name: build ami | |
run: | | |
export ELI_PATH=$PWD/eli | |
eli ./build/build.lua | |
cd .meta && zip ../meta.zip -r * && cd .. | |
- name: prepare assets | |
run: | | |
mkdir -p upload | |
mv bin/ami.lua upload/ami.lua | |
mv bin/exit-codes.json upload/exit-codes.json | |
mv meta.zip upload/meta.zip | |
- name: Upload files to a GitHub release | |
uses: svenstaro/[email protected] | |
with: | |
file_glob: true | |
tag: ${{ github.ref }} | |
file: upload/* |