diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 348ac8f..4600cce 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,20 +23,10 @@ jobs: name: Build for NexusMods runs-on: ubuntu-latest steps: - - name: Checkout Repository - uses: actions/checkout@v2 - - - name: Setup .NET Core - uses: actions/setup-dotnet@master - with: - dotnet-version: 5.0.x - - - name: Setup BUTR GPR - uses: actions/setup-dotnet@master + - name: Setup + uses: butr/actions-common-setup@v1.1 with: - source-url: https://nuget.pkg.github.com/BUTR/index.json - env: - NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + github-token: ${{secrets.GITHUB_TOKEN}} - name: Build Bannerlord.Harmony (Release) run: >- @@ -59,20 +49,10 @@ jobs: runs-on: ubuntu-latest if: ${{false}} steps: - - name: Checkout Repository - uses: actions/checkout@v2 - - - name: Setup .NET Core - uses: actions/setup-dotnet@master - with: - dotnet-version: 3.1.x - - - name: Setup BUTR GPR - uses: actions/setup-dotnet@master + - name: Setup + uses: butr/actions-common-setup@v1.1 with: - source-url: https://nuget.pkg.github.com/BUTR/index.json - env: - NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + github-token: ${{secrets.GITHUB_TOKEN}} - name: Download bannerlord folder uses: actions/download-artifact@v2 @@ -127,20 +107,10 @@ jobs: runs-on: ubuntu-latest needs: ["build-module"] steps: - - name: Checkout Repository - uses: actions/checkout@v2 - - - name: Setup .NET Core - uses: actions/setup-dotnet@master + - name: Setup + uses: butr/actions-common-setup@v1.1 with: - dotnet-version: 3.1.x - - - name: Setup BUTR GPR - uses: actions/setup-dotnet@master - with: - source-url: https://nuget.pkg.github.com/BUTR/index.json - env: - NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + github-token: ${{secrets.GITHUB_TOKEN}} - name: Download bannerlord folder uses: actions/download-artifact@v2