diff --git a/.github/workflows/collection.yml b/.github/workflows/collection.yml index c0de74b..c5863ca 100644 --- a/.github/workflows/collection.yml +++ b/.github/workflows/collection.yml @@ -1,12 +1,12 @@ --- name: Build and deploy Collection on Ansible Galaxy - on: push: + branches: + - main tags: - 'v*' - jobs: deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml new file mode 100644 index 0000000..2f229ed --- /dev/null +++ b/.github/workflows/semantic-release.yml @@ -0,0 +1,27 @@ +--- + +# runs on each push to main and is responsible for creating new tags/releases +name: Create Semantic Release + +on: + push: + branches: + - main + +jobs: + semantic-release: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Run go-semantic-release + id: semrel + uses: go-semantic-release/action@v1.23 + with: + allow-initial-development-versions: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}