#
#  Copyright 2017-2021 Adobe.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#          http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#

# For more information see: https://github.com/marketplace/actions/github-create-tag-release

on:
  push:
    branches: [ main ]
name: Release
jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - name: GitHub Create Tag Release
        uses: Roang-zero1/github-create-release-action@v2.1.0
        with:
          version_regex: ^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

#
#  Copyright 2017-2021 Adobe.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#          http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#

# For more information see: https://github.com/marketplace/actions/github-create-tag-release

on:
  push:
    tags:
      - '*'
name: Release
jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - name: GitHub Create Tag Release
        uses: Roang-zero1/github-create-release-action@v2.1.0
        with:
          version_regex: ^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Fix release creation trigger, only trigger on tag push
Fix release creation trigger, only trigger on tag push

I have broken the action by triggering it on every push on
branch "main" - tags are not pushed to branches, D'oh!

Fixup for #265
