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