From 839c461fc0dddad7eeff5c2f0419f5f504e37522 Mon Sep 17 00:00:00 2001 From: diogo464 Date: Fri, 23 Sep 2022 14:12:45 +0100 Subject: added github action to release binaries --- .github/workflows/release.yml | 67 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/release.yml (limited to '.github/workflows/release.yml') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a5928d0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,67 @@ +name: release +on: + push: + tags: + - "[0-9]+.[0-9]+.[0-9]+" + +jobs: + build-linux: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + + - name: Build binaries + run: ./prepare_binaries.sh linux + + - uses: actions/upload-artifact@master + with: + name: dotup-linux-x64 + path: dotup_x86_64-unknown-linux-musl + + build-macos: + runs-on: macos-12 + + steps: + - uses: actions/checkout@v3 + + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + + - name: Build binaries + run: ./prepare_binaries.sh macos + + - uses: actions/upload-artifact@master + with: + name: dotup-macos-x64 + path: dotup_x86_64-apple-darwin + + release: + runs-on: ubuntu-latest + needs: [build-linux, build-macos] + steps: + - name: Download linux binary + uses: actions/download-artifact@master + with: + name: dotup-linux-x64 + path: . + + - name: Download macos binary + uses: actions/download-artifact@master + with: + name: dotup-macos-x64 + path: . + + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: dotup_* -- cgit