fix release
This commit is contained in:
parent
5c1c337986
commit
6be571c228
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -41,11 +41,11 @@ jobs:
|
|||||||
useConfigFile: true
|
useConfigFile: true
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE/src
|
cd $GITHUB_WORKSPACE
|
||||||
dotnet restore
|
dotnet restore
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE/src
|
cd $GITHUB_WORKSPACE
|
||||||
dotnet publish FastGithub -c Release -f net6.0 /p:PublishSingleFile=true /p:PublishTrimmed=true -r ${{ matrix.os }} /p:PublishTrimmed=true -p:AssemblyVersion=${{ steps.gitversion.outputs.MajorMinorPatch }} -p:Version=${{ steps.gitversion.outputs.SemVer }} -o ./out/${{ matrix.os }}
|
dotnet publish FastGithub -c Release -f net6.0 /p:PublishSingleFile=true /p:PublishTrimmed=true -r ${{ matrix.os }} /p:PublishTrimmed=true -p:AssemblyVersion=${{ steps.gitversion.outputs.MajorMinorPatch }} -p:Version=${{ steps.gitversion.outputs.SemVer }} -o ./out/${{ matrix.os }}
|
||||||
mv out/${{ matrix.os }} FastGithub-${{ matrix.os }}-${{ steps.gitversion.outputs.MajorMinorPatch }}
|
mv out/${{ matrix.os }} FastGithub-${{ matrix.os }}-${{ steps.gitversion.outputs.MajorMinorPatch }}
|
||||||
zip -r FastGithub-${{ matrix.os }}-${{ steps.gitversion.outputs.MajorMinorPatch }}.zip FastGithub-${{ matrix.os }}-${{ steps.gitversion.outputs.MajorMinorPatch }}
|
zip -r FastGithub-${{ matrix.os }}-${{ steps.gitversion.outputs.MajorMinorPatch }}.zip FastGithub-${{ matrix.os }}-${{ steps.gitversion.outputs.MajorMinorPatch }}
|
||||||
@ -62,4 +62,4 @@ jobs:
|
|||||||
repository: "FastGithub"
|
repository: "FastGithub"
|
||||||
tagName: "v${{ steps.gitversion.outputs.MajorMinorPatch }}"
|
tagName: "v${{ steps.gitversion.outputs.MajorMinorPatch }}"
|
||||||
assets: |
|
assets: |
|
||||||
src/FastGithub-${{ matrix.os }}-${{ steps.gitversion.outputs.MajorMinorPatch }}.zip
|
FastGithub-${{ matrix.os }}-${{ steps.gitversion.outputs.MajorMinorPatch }}.zip
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user