From 6fd2592f2ce1c2bb845e29bd34c406bd5f0408cb Mon Sep 17 00:00:00 2001 From: Pierrick Greze Date: Fri, 21 Apr 2023 09:50:16 +0900 Subject: [PATCH] Create branch-or-tag.yml --- .github/workflows/branch-or-tag.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/branch-or-tag.yml diff --git a/.github/workflows/branch-or-tag.yml b/.github/workflows/branch-or-tag.yml new file mode 100644 index 0000000..0e74525 --- /dev/null +++ b/.github/workflows/branch-or-tag.yml @@ -0,0 +1,16 @@ +name: Build or publish + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + if: github.ref_type != 'tag' + steps: + - run: env + + publish: + runs-on: ubuntu-latest + if: github.ref_type == 'tag' && github.event_name == 'create' + steps: + - run: env