Skip to content

Commit

Permalink
ci: release when tag changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 committed Feb 23, 2024
1 parent 74104d7 commit 2cd0c16
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: 'release'
on:
push:
tags:
- 'v*.*.*'
branches:
- release
- main

jobs:
release:
Expand All @@ -22,14 +24,7 @@ jobs:
- name: Install dependencies and build
run: pnpm i && pnpm build

- name: Get Previous Tag
id: previous_tag
uses: 'WyriHaximus/github-action-get-previous-tag@v1'
with:
fallback: 0.0.0

- name: Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
tag_name: ${{steps.previous_tag.outputs.tag}}

0 comments on commit 2cd0c16

Please sign in to comment.