Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alexchristy committed Oct 5, 2024
1 parent f610f41 commit 126396b
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .autorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"plugins": [
"git-tag",
"first-time-contributor",
"released"
],
"owner": "alexchristy",
"repo": "wazuh-pipeline",
"name": "Alex Christy",
"email": "[email protected]"
}
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Create Release

on:
push:
branches:
- main


jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v4

- name: Prepare repository
run: git fetch --unshallow --tags

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Install Auto and Plugins
run: npm install -g @auto-it/git-tag

- name: Release with Auto
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx auto shipit
File renamed without changes.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.env

# Generated log files
*.log

0 comments on commit 126396b

Please sign in to comment.