fix(releases): Updates release flow. Fixes windows builds (#482)
This commit is contained in:
parent
1ed4a797a0
commit
1736469ac0
2 changed files with 17 additions and 18 deletions
27
.github/workflows/create-release.yml
vendored
27
.github/workflows/create-release.yml
vendored
|
|
@ -16,29 +16,28 @@ jobs:
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v1
|
||||||
with:
|
with:
|
||||||
dotnet-version: 5.0.102
|
dotnet-version: 5.0.102
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: 14
|
|
||||||
- name: Install NGBV
|
- name: Install NGBV
|
||||||
uses: dotnet/nbgv@master
|
uses: dotnet/nbgv@master
|
||||||
id: nbgv
|
id: nbgv
|
||||||
- name: Githug Changelog Generator
|
- name: Conventional Changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
uses: heinrichreimer/github-changelog-generator-action@v2.1.1
|
uses: TriPSs/conventional-changelog-action@v3
|
||||||
with:
|
with:
|
||||||
onlyLastTag: true,
|
github-token: ${{ secrets.github_token }}
|
||||||
stripHeaders: true,
|
output-file: false
|
||||||
stripGeneratorNotice: true,
|
skip-version-file: true
|
||||||
pullRequests: true,
|
skip-commit: true
|
||||||
prWoLabels: true,
|
- uses: dev-drprasad/delete-tag-and-release@v0.1.3
|
||||||
httpCache: true,
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
delete_release: true
|
||||||
|
tag_name: 0.1.0
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
with:
|
with:
|
||||||
body: ${{ steps.changelog.outputs.changelog }}
|
body: ${{ steps.changelog.outputs.clean_changelog }}
|
||||||
tag_name: ${{ steps.nbgv.outputs.Version }}
|
tag_name: ${{ steps.nbgv.outputs.Version }}
|
||||||
release_name: ${{ steps.nbgv.outputs.Version }}
|
release_name: ${{ steps.nbgv.outputs.Version }}
|
||||||
draft: false
|
draft: false
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,8 @@ if [[ $os == *'centos'* || $os == *'rhel'* ]]; then
|
||||||
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
|
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo dotnet restore --force-evaluate
|
echo dotnet restore --force-evaluate --source https://api.nuget.org/v3/index.json
|
||||||
dotnet restore --force-evaluate
|
dotnet restore --force-evaluate --source https://api.nuget.org/v3/index.json
|
||||||
|
|
||||||
echo dotnet publish ${config} ${os} --no-restore --self-contained=false -o Distribution Projects/Server/Server.csproj
|
echo dotnet publish ${config} ${os} --no-restore --self-contained=false -o Distribution Projects/Server/Server.csproj
|
||||||
dotnet publish ${config} ${os} --no-restore --self-contained=false -o Distribution Projects/Server/Server.csproj
|
dotnet publish ${config} ${os} --no-restore --self-contained=false -o Distribution Projects/Server/Server.csproj
|
||||||
|
|
@ -54,8 +54,8 @@ IF "%~2" == "" (
|
||||||
SET os=-r %~2-x64
|
SET os=-r %~2-x64
|
||||||
)
|
)
|
||||||
|
|
||||||
echo dotnet restore --force-evaluate
|
echo dotnet restore --force-evaluate --source https://api.nuget.org/v3/index.json
|
||||||
dotnet restore --force-evaluate
|
dotnet restore --force-evaluate --source https://api.nuget.org/v3/index.json
|
||||||
|
|
||||||
echo dotnet publish %config% %os% --no-restore --self-contained=false -o Distribution Projects\Server\Server.csproj
|
echo dotnet publish %config% %os% --no-restore --self-contained=false -o Distribution Projects\Server\Server.csproj
|
||||||
dotnet publish %config% %os% --no-restore --self-contained=false -o Distribution Projects\Server\Server.csproj
|
dotnet publish %config% %os% --no-restore --self-contained=false -o Distribution Projects\Server\Server.csproj
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue