fix: Fixes releases (#1576)
This commit is contained in:
parent
cde59a82f2
commit
c53c842c4b
4 changed files with 16 additions and 18 deletions
8
.github/workflows/build-test.yml
vendored
8
.github/workflows/build-test.yml
vendored
|
|
@ -20,13 +20,13 @@ jobs:
|
||||||
name: MacOS 13
|
name: MacOS 13
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||||
- name: Setup .NET 7
|
- name: Setup .NET 7
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 7.0.401
|
dotnet-version: 7.0.x
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./publish.cmd Release
|
run: ./publish.cmd Release
|
||||||
- name: Migration Changes
|
- name: Migration Changes
|
||||||
|
|
@ -74,13 +74,13 @@ jobs:
|
||||||
- name: Install Prerequisites using apt
|
- name: Install Prerequisites using apt
|
||||||
run: apt-get update -y && apt-get install -y curl libicu-dev libz-dev zstd libargon2-dev tzdata
|
run: apt-get update -y && apt-get install -y curl libicu-dev libz-dev zstd libargon2-dev tzdata
|
||||||
if: ${{ matrix.packageManager == 'apt' }}
|
if: ${{ matrix.packageManager == 'apt' }}
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||||
- name: Setup .NET 7
|
- name: Setup .NET 7
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 7.0.401
|
dotnet-version: 7.0.x
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./publish.sh Release
|
run: ./publish.sh Release
|
||||||
- name: Test
|
- name: Test
|
||||||
|
|
|
||||||
22
.github/workflows/create-release.yml
vendored
22
.github/workflows/create-release.yml
vendored
|
|
@ -10,14 +10,14 @@ jobs:
|
||||||
name: Create Release
|
name: Create Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||||
token: ${{ secrets.WORKFLOW_TOKEN }}
|
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
- name: Setup .NET 7
|
- name: Setup .NET 7
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 7.0.401
|
dotnet-version: 7.0.x
|
||||||
- name: Install NGBV
|
- name: Install NGBV
|
||||||
uses: dotnet/nbgv@master
|
uses: dotnet/nbgv@master
|
||||||
id: nbgv
|
id: nbgv
|
||||||
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
owner: ModernUO
|
owner: ModernUO
|
||||||
repo: ModernUO
|
repo: ModernUO
|
||||||
excludes: prerelease, draft
|
excludes: prerelease, draft
|
||||||
token: ${{ secrets.WORKFLOW_TOKEN }}
|
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
- name: Create fake tag for diffing
|
- name: Create fake tag for diffing
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "Fake Tag Action"
|
git config --global user.name "Fake Tag Action"
|
||||||
|
|
@ -39,33 +39,31 @@ jobs:
|
||||||
- name: Push git changes
|
- name: Push git changes
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
tags: true
|
tags: true
|
||||||
- name: Conventional Changelog
|
- name: Conventional Changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
uses: TriPSs/conventional-changelog-action@v3
|
uses: TriPSs/conventional-changelog-action@v4
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.WORKFLOW_TOKEN }}
|
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
output-file: false
|
output-file: false
|
||||||
skip-version-file: true
|
skip-version-file: true
|
||||||
skip-commit: true
|
skip-commit: true
|
||||||
release-count: 1
|
release-count: 1
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
|
||||||
- name: Delete v${{ steps.changelog.outputs.version }} Tag
|
- name: Delete v${{ steps.changelog.outputs.version }} Tag
|
||||||
uses: dev-drprasad/delete-tag-and-release@v0.2.1
|
uses: dev-drprasad/delete-tag-and-release@v0.2.1
|
||||||
with:
|
with:
|
||||||
delete_release: true
|
delete_release: true
|
||||||
tag_name: v${{ steps.changelog.outputs.version }}
|
tag_name: v${{ steps.changelog.outputs.version }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
- name: Delete v0.1.0 Tag
|
- name: Delete v0.1.0 Tag
|
||||||
uses: dev-drprasad/delete-tag-and-release@v0.2.1
|
uses: dev-drprasad/delete-tag-and-release@v0.2.1
|
||||||
with:
|
with:
|
||||||
delete_release: true
|
delete_release: true
|
||||||
tag_name: v0.1.0
|
tag_name: v0.1.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
|
@ -75,4 +73,4 @@ jobs:
|
||||||
name: ${{ steps.nbgv.outputs.Version }}
|
name: ${{ steps.nbgv.outputs.Version }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
token: ${{ secrets.WORKFLOW_TOKEN }}
|
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
|
|
|
||||||
2
.github/workflows/update-docs.yml
vendored
2
.github/workflows/update-docs.yml
vendored
|
|
@ -9,7 +9,7 @@ jobs:
|
||||||
update-docs:
|
update-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
displayName: 'Install .NET 7'
|
displayName: 'Install .NET 7'
|
||||||
inputs:
|
inputs:
|
||||||
packageType: sdk
|
packageType: sdk
|
||||||
version: 7.0.401
|
version: '7.0.x'
|
||||||
- task: NuGetAuthenticate@1
|
- task: NuGetAuthenticate@1
|
||||||
- script: ./publish.cmd Release
|
- script: ./publish.cmd Release
|
||||||
displayName: 'Build'
|
displayName: 'Build'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue