Skip to content

Commit 403743b

Browse files
committed
fix: ensure release runs full test+coverage gate before packaging, use GH_TOKEN for tag push
Made-with: Cursor
1 parent dbbadf1 commit 403743b

File tree

2 files changed

+3
-26
lines changed

2 files changed

+3
-26
lines changed

.github/workflows/create-tag.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010

1111
permissions:
1212
contents: write
13-
actions: write
1413

1514
jobs:
1615
tag:
@@ -20,6 +19,7 @@ jobs:
2019
- uses: actions/checkout@v4
2120
with:
2221
fetch-depth: 0
22+
token: ${{ secrets.GH_TOKEN }}
2323

2424
- name: Determine version
2525
id: version
@@ -46,8 +46,3 @@ jobs:
4646
run: |
4747
git tag ${{ steps.version.outputs.tag }}
4848
git push origin ${{ steps.version.outputs.tag }}
49-
50-
- name: Trigger release workflow
51-
run: gh workflow run release.yml -f tag=${{ steps.version.outputs.tag }}
52-
env:
53-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,9 @@ jobs:
4848
- name: Restore tools
4949
run: dotnet tool restore
5050

51-
- name: Publish
51+
- name: Test + Build + Pack
5252
shell: pwsh
53-
run: |
54-
dotnet publish src/LiveLingo.App/LiveLingo.App.csproj `
55-
-c Release `
56-
-r win-x64 `
57-
--self-contained `
58-
-o publish/win-x64 `
59-
--nologo
60-
61-
- name: Pack (Velopack)
62-
shell: pwsh
63-
env:
64-
DOTNET_ROLL_FORWARD: LatestMajor
65-
run: |
66-
dotnet vpk pack `
67-
--packId LiveLingo `
68-
--packVersion ${{ steps.meta.outputs.version }} `
69-
--packDir publish/win-x64 `
70-
--mainExe LiveLingo.App.exe `
71-
--outputDir releases
53+
run: ./build.ps1 Pack --Version ${{ steps.meta.outputs.version }}
7254

7355
- name: Create GitHub Release
7456
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)