fix: Fixes releases (#1576)

This commit is contained in:
Kamron Batman 2023-10-30 19:26:10 -07:00 committed by GitHub
parent cde59a82f2
commit c53c842c4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 18 deletions

View file

@ -20,13 +20,13 @@ jobs:
name: MacOS 13
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET 7
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.401
dotnet-version: 7.0.x
- name: Build
run: ./publish.cmd Release
- name: Migration Changes
@ -74,13 +74,13 @@ jobs:
- name: Install Prerequisites using apt
run: apt-get update -y && apt-get install -y curl libicu-dev libz-dev zstd libargon2-dev tzdata
if: ${{ matrix.packageManager == 'apt' }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET 7
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.401
dotnet-version: 7.0.x
- name: Build
run: ./publish.sh Release
- name: Test

View file

@ -10,14 +10,14 @@ jobs:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
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
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.401
dotnet-version: 7.0.x
- name: Install NGBV
uses: dotnet/nbgv@master
id: nbgv
@ -28,7 +28,7 @@ jobs:
owner: ModernUO
repo: ModernUO
excludes: prerelease, draft
token: ${{ secrets.WORKFLOW_TOKEN }}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Create fake tag for diffing
run: |
git config --global user.name "Fake Tag Action"
@ -39,33 +39,31 @@ jobs:
- name: Push git changes
uses: ad-m/github-push-action@master
with:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
tags: true
- name: Conventional Changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v3
uses: TriPSs/conventional-changelog-action@v4
with:
github-token: ${{ secrets.WORKFLOW_TOKEN }}
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
output-file: false
skip-version-file: true
skip-commit: true
release-count: 1
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
- name: Delete v${{ steps.changelog.outputs.version }} Tag
uses: dev-drprasad/delete-tag-and-release@v0.2.1
with:
delete_release: true
tag_name: v${{ steps.changelog.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Delete v0.1.0 Tag
uses: dev-drprasad/delete-tag-and-release@v0.2.1
with:
delete_release: true
tag_name: v0.1.0
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
@ -75,4 +73,4 @@ jobs:
name: ${{ steps.nbgv.outputs.Version }}
draft: false
prerelease: false
token: ${{ secrets.WORKFLOW_TOKEN }}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

View file

@ -9,7 +9,7 @@ jobs:
update-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.x