Skip to content

Commit e2c68b1

Browse files
committed
2 parents 5c71399 + b1d4727 commit e2c68b1

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/release.yaml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,27 @@ jobs:
3232
# Create .tgz tarball of the package folder
3333
- name: Pack UPM package
3434
run: |
35-
tar -czf "../${{ steps.pkg.outputs.pkg_filename }}" *
35+
tar -czf "${{ steps.pkg.outputs.pkg_filename }}" *
3636
37-
- name: Create Release
37+
- name: Create local tag
38+
run: git tag "v${{ steps.pkg.outputs.pkg_version }}"
39+
40+
- name: Push tag to GitHub
41+
run: git push origin "v${{ steps.pkg.outputs.pkg_version }}"
42+
43+
- name: Create Draft Release
3844
uses: softprops/action-gh-release@v2
3945
with:
40-
files: ${{ steps.pkg.outputs.pkg_filename }}
41-
tag_name: ${{ github.ref_name }}
42-
name: Release ${{ steps.pkg.outputs.pkg_version }}
46+
tag_name: "v${{ steps.pkg.outputs.pkg_version }}"
47+
name: "Release v${{ steps.pkg.outputs.pkg_version }}"
4348
body: |
4449
🎉 New release of ${{ steps.pkg.outputs.pkg_name }}
4550
Version: ${{ steps.pkg.outputs.pkg_version }}
51+
52+
## Changelog
53+
- Feature A
54+
- Fix B
55+
files: ${{ steps.pkg.outputs.pkg_filename }},RELEASE_NOTES.md
56+
draft: true
4657
env:
47-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)