Separate Forgejo Actions Push And Release Workflow

This commit is contained in:
Neshura 2023-11-17 08:13:45 +00:00
parent c170618df9
commit 622e30caa5

View file

@ -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: jobs:
run-tests: run-tests:
runs-on: docker runs-on: docker
@ -8,13 +12,14 @@ jobs:
run: echo Placeholder Job run: echo Placeholder Job
build: 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 runs-on: docker
container: rust:latest container: rust:latest
steps: steps:
- -
name: Installing Node name: Installing Node
run: apt install -y node run: apt install -y nodejs
- -
name: Checking Out Repository Code name: Checking Out Repository Code
uses: https://code.forgejo.org/actions/checkout@v3 uses: https://code.forgejo.org/actions/checkout@v3