Skip to content

Commit 28c14ea

Browse files
CrypticGuyclaude
andcommitted
Update release workflow with proper asset uploads
- Add step to copy README.md and LICENSE to dist folder - Remove duplicate gh release upload step - Fix release creation trigger for workflow_dispatch - Include rc versions in prerelease check Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e0985cd commit 28c14ea

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ jobs:
3939
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
4040
echo "TAG=v$VERSION" >> $GITHUB_OUTPUT
4141
42+
- name: Copy documentation
43+
run: |
44+
mkdir -p ${{ github.workspace }}/dist
45+
cp ${{ github.workspace }}/README.md ${{ github.workspace }}/dist/
46+
cp ${{ github.workspace }}/LICENSE ${{ github.workspace }}/dist/
47+
4248
- name: Publish
4349
run: |
4450
dotnet publish ${{ github.workspace }}/CrossHairPlus/CrossHairPlus.csproj `
@@ -51,19 +57,12 @@ jobs:
5157
5258
- name: Create Release
5359
uses: softprops/action-gh-release@v2
54-
if: startsWith(github.ref, 'refs/tags/')
5560
with:
5661
draft: true
57-
prerelease: ${{ contains(steps.version.outputs.VERSION, 'alpha') || contains(steps.version.outputs.VERSION, 'beta') }}
62+
prerelease: ${{ contains(steps.version.outputs.VERSION, 'alpha') || contains(steps.version.outputs.VERSION, 'beta') || contains(steps.version.outputs.VERSION, 'rc') }}
5863
files: |
5964
dist/AimSight.exe
60-
dist/*.md
61-
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63-
64-
- name: Upload Release Asset
65-
if: startsWith(github.ref, 'refs/tags/')
66-
run: |
67-
gh release upload ${{ steps.version.outputs.TAG }} dist/AimSight.exe --clobber
65+
dist/README.md
66+
dist/LICENSE
6867
env:
6968
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)