From e82febb91262e5011ef82f175742de9f7a7d0fce Mon Sep 17 00:00:00 2001 From: Mr Sharafdin <83120892+isasharafdin@users.noreply.github.com> Date: Sat, 10 Feb 2024 15:47:42 +0300 Subject: [PATCH 1/2] Update publish.yaml --- .github/workflows/publish.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 29fe6c3f..2a4b6294 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -7,6 +7,8 @@ on: jobs: publish: + # prevents this action from running on forks + if: github.repository == 'sharafdin/yonode' name: Publish Yonode Package runs-on: ubuntu-latest From 4f59961ea3d46f4be5f0aec527baf831ef72af7e Mon Sep 17 00:00:00 2001 From: Mr Sharafdin <83120892+isasharafdin@users.noreply.github.com> Date: Sat, 10 Feb 2024 16:08:49 +0300 Subject: [PATCH 2/2] Update publish.yaml --- .github/workflows/publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 2a4b6294..9d5407ab 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -2,8 +2,8 @@ name: Publish Yonode Package on: push: - branches: - - main + tags: + - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 jobs: publish: