From 622e30caa5394ab99de005ccb6df84fe32560b0b Mon Sep 17 00:00:00 2001 From: Neshura Date: Fri, 17 Nov 2023 08:13:45 +0000 Subject: [PATCH] Separate Forgejo Actions Push And Release Workflow --- .forgejo/workflows/{build.yml => build+release.yml} | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) rename .forgejo/workflows/{build.yml => build+release.yml} (90%) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build+release.yml similarity index 90% rename from .forgejo/workflows/build.yml rename to .forgejo/workflows/build+release.yml index 74eb09a..991a21a 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build+release.yml @@ -1,4 +1,8 @@ -on: [push] +on: + push: + tags: + - '[0-9]+.[0-9]+.[0-9]+' + - '[0-9]+.[0-9]+.[0-9]+rc[0-9]+' jobs: run-tests: runs-on: docker @@ -8,13 +12,14 @@ jobs: run: echo Placeholder Job build: - if: ${{ github.ref == 'refs/tags/[0-9]+.[0-9]+.[0-9]+' }} || ${{ github.ref == 'refs/tags/[0-9]+.[0-9]+.[0-9]+rc[0-9]+' }} + needs: test + if: success() runs-on: docker container: rust:latest steps: - name: Installing Node - run: apt install -y node + run: apt install -y nodejs - name: Checking Out Repository Code uses: https://code.forgejo.org/actions/checkout@v3