Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tellmeY18 authored Oct 7, 2023
1 parent 290aaee commit 007b1cb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: release

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
branches:
- main # Adjust the branch name if needed

jobs:
create-release:
Expand All @@ -17,7 +17,7 @@ jobs:

- name: Set Release Version
id: set_version
run: echo "::set-output name=version::${GITHUB_REF_NAME}"
run: echo "::set-output name=version::$(date +'%Y.%m.%d.%H%M%S')"

- name: Create GitHub Release
env:
Expand Down Expand Up @@ -51,4 +51,3 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ needs.create-release.outputs.release_version }} oi.tar.gz --clobber

0 comments on commit 007b1cb

Please sign in to comment.