Skip to content

Commit

Permalink
fix(release): create annotated tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sthaha committed Aug 15, 2023
1 parent e5117da commit 8ff64d7
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
inputs:
tag:
description: "Tag name, e.g. 0.4.0"
default: 0.4.0
default: 0.6.0
required: true
release:
description: "Release name, e.g. release-0.4.0"
default: release-0.4.0
default: release-0.6.0
required: true

jobs:
Expand All @@ -31,13 +31,23 @@ jobs:
uses: actions/github-script@v5
with:
script: |
github.rest.git.createTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: ${{ github.event.inputs.tag },
message: ${{ github.event.inputs.tag },
object: context.sha ,
type, 'commit',
})
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ github.event.inputs.tag }}',
sha: context.sha
sha: context.sha,
})
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -49,12 +59,14 @@ jobs:
draft: false
prerelease: false


create-release-branch:
name: Create release branch
permissions:
contents: write
needs: [build]
runs-on: ubuntu-latest
steps:
steps:
- name: Create release branch
uses: peterjgrainger/[email protected]
env:
Expand Down

0 comments on commit 8ff64d7

Please sign in to comment.