Skip to content

Commit

Permalink
Merge pull request #11 from adfinis/feat/ci_semantic-release
Browse files Browse the repository at this point in the history
feat(ci): add semantic-release workflow
  • Loading branch information
adf-patrickha authored Jul 24, 2024
2 parents 6882ebc + c74cddd commit 70c6954
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/collection.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---

name: Build and deploy Collection on Ansible Galaxy

on:
push:
branches:
- main
tags:
- 'v*'

jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
allow-initial-development-versions: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 70c6954

Please sign in to comment.