From 4cb1459f71c813739dbd27c93f958683661f82bd Mon Sep 17 00:00:00 2001 From: Adrian Wannenmacher Date: Sun, 24 Sep 2023 07:40:08 +0200 Subject: [PATCH] split workflow files --- .github/workflows/{rust.yml => release.yml} | 33 --------------------- .github/workflows/test.yml | 30 +++++++++++++++++++ 2 files changed, 30 insertions(+), 33 deletions(-) rename .github/workflows/{rust.yml => release.yml} (58%) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/release.yml similarity index 58% rename from .github/workflows/rust.yml rename to .github/workflows/release.yml index 1c2f0c6..2b1d750 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/release.yml @@ -1,36 +1,3 @@ -name: Test - -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] - -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 - - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest" - prerelease: true - title: "Development Build" - files: | - LICENSE - target/debug/tree-owners - ---- - name: Release on: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..fe5780f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: Test + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +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 + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Development Build" + files: | + LICENSE + target/debug/tree-owners