From 6ee68f1733fad801310d361eead4187bf046c1af Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Thu, 16 Mar 2023 19:27:48 +0100 Subject: [PATCH] Deleted wrong file --- .github/workflows/release-build.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/test.yml | 22 ---------------------- 2 files changed, 29 insertions(+), 22 deletions(-) create mode 100644 .github/workflows/release-build.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml new file mode 100644 index 0000000..8841575 --- /dev/null +++ b/.github/workflows/release-build.yml @@ -0,0 +1,29 @@ +name: Release Build + +on: + release: + types: + - published + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose --release + - name: Create Tarball + run: tar -czvf schemsearch-cli.tar.gz -C target/release schemsearch-cli + - name: upload linux artifact + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.published_release.outputs.upload_url }} + asset_path: schemsearch-cli.tar.gz + asset_name: schemsearch-cli-linux.tar.gz + asset_content_type: application/gzip diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 5cbe8bc..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Build and Test - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -env: - CARGO_TERM_COLOR: always - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose