Skip to content

Commit

Permalink
ci: add workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 25, 2024
1 parent 714c481 commit 2b9d4c0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI
on:
push:
# branches:
# - main
tags:
- v*

jobs:
tags:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4

- name: Extract version from tag
id: extract_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@main
with:
version: ${{ env.VERSION }}
release: true

0 comments on commit 2b9d4c0

Please sign in to comment.