Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
igoroctaviano committed May 2, 2024
1 parent 0a8bbbf commit b11d9d9
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: release

on:
push:
branches:
- master

jobs:
ci:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Setup Node
uses: actions/[email protected]
with:
node-version: 20.x

- name: Install dependencies
run: yarn

- name: Run build
run: yarn build

- name: ZIP build
run: zip -r build.zip build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release --branches master
17 changes: 17 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/github",
{
"assets": [
{
"path": "build.zip",
"label": "slim-${nextRelease.gitTag}.zip"
}
]
}
]
]
}

0 comments on commit b11d9d9

Please sign in to comment.