From c53c842c4ba3a977d7b926ecae8072266faaddfb Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Mon, 30 Oct 2023 19:26:10 -0700 Subject: [PATCH] fix: Fixes releases (#1576) --- .github/workflows/build-test.yml | 8 ++++---- .github/workflows/create-release.yml | 22 ++++++++++------------ .github/workflows/update-docs.yml | 2 +- azure-pipelines.yml | 2 +- 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 7e2058c66..4e6c66a91 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -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 diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index ac208a249..efd86e385 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -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 }} diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index 57be0002e..b815a3af8 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -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 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 63e2a4ab8..efab248e3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,7 +18,7 @@ jobs: displayName: 'Install .NET 7' inputs: packageType: sdk - version: 7.0.401 + version: '7.0.x' - task: NuGetAuthenticate@1 - script: ./publish.cmd Release displayName: 'Build'