Skip to content

Commit

Permalink
Add auto release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alexchristy committed Nov 25, 2024
1 parent acdbf3b commit 28e83ed
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .autorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"plugins": [
"git-tag"
],
"owner": "alexchristy",
"repo": "PyOPN",
"name": "Alex Christy",
"email": "[email protected]"
}
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Prod 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@v2

- 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

0 comments on commit 28e83ed

Please sign in to comment.