Skip to content

Commit

Permalink
[CI] Added release workflow (#243)
Browse files Browse the repository at this point in the history
* Added `release` workflow

* Trigger Build
  • Loading branch information
rmanaem authored Dec 7, 2023
1 parent ad827b8 commit 2ac9747
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .autorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"onlyPublishWithReleaseLabel": false,
"baseBranch": "main",
"author": "Chef Bot <[email protected]>",
"noVersionPrefix": false,
"plugins": [
"git-tag",
"released"
]
}
27 changes: 27 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: auto release

on:
push:
branches:
- main

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

- name: Download latest auto
run: |
auto_download_url="$(curl -fsSL https://api.github.com/repos/intuit/auto/releases/latest | jq -r '.assets[] | select(.name == "auto-linux.gz") | .browser_download_url')"
wget -O- "$auto_download_url" | gunzip > ~/auto
chmod a+x ~/auto
- name: Release
run: ~/auto shipit -vv
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2ac9747

Please sign in to comment.