From cd1586c65b396c2af02763fff81d00749c48b5a3 Mon Sep 17 00:00:00 2001 From: Patrick Gaskin Date: Fri, 1 May 2020 14:25:25 -0400 Subject: [PATCH] Added GitHub Action for automated releases --- .github/workflows/release.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..26de385 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,33 @@ +name: Release +on: {push: {tags: [v*]}} + +jobs: + build: + name: NickelMenu + runs-on: ubuntu-latest + container: docker.io/geek1011/kobo-toolchain:latest + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Build + run: make all koboroot + - name: Release + id: release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + with: + tag_name: ${{github.ref}} + release_name: NickelMenu ${{github.ref}} + body: '' + draft: true + prerelease: false + - name: Upload + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + with: + upload_url: ${{steps.release.outputs.upload_url}} + asset_path: ./KoboRoot.tgz + asset_name: KoboRoot.tgz + asset_content_type: application/gzip