From 41a3c5f84605296d7d6225deef4fdf93f90a382f Mon Sep 17 00:00:00 2001 From: Michael Camilleri Date: Mon, 23 Aug 2021 14:55:59 +0900 Subject: [PATCH] Add GitHub Workflow to draft release --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..5716dff6 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Release + +on: + push: + tags: + - "v*.*.*" + +jobs: + + release: + name: Build release binaries + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest, macos-latest ] + steps: + - name: Checkout the repository + uses: actions/checkout@master + - name: Set the version + run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV + - name: Set the platform + run: echo "platform=${RUNNER_OS,,}" >> $GITHUB_ENV + - name: Compile the project + run: make clean && make + - name: Build the artifact + run: make build/janet-${{ env.version }}-${{ env.platform }}-x64.tar.gz + - name: Draft the release + uses: softprops/action-gh-release@v1 + with: + draft: true + files: | + build/*.gz + build/janet.h + build/c/janet.c + build/c/shell.c