From 8817dc80bf4a39a64d6ceea47c69a1e5f5c64584 Mon Sep 17 00:00:00 2001 From: Mathew Norman Date: Fri, 15 Nov 2024 08:53:51 +1100 Subject: [PATCH] Update release.yml Edited the remaining fields from the rust template --- .github/workflows/release.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4a47a67..c9a8b52 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,26 +1,14 @@ -name: Rust +name: Create release on: push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] + tags: + - 'v*' # Triggers on tags that start with "v", e.g., v1.0, v2.1.1 env: CARGO_TERM_COLOR: always jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose - release: runs-on: ubuntu-latest steps: