From f3275be279728fee5e153f428b3df18995e7f568 Mon Sep 17 00:00:00 2001 From: Vladimir Safonkin Date: Fri, 25 Mar 2022 10:29:58 +0100 Subject: [PATCH] Update docs to v2 --- README.md | 20 ++++++++++---------- docs/contributors.md | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index e642186..0356590 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Basic: ```yaml steps: - uses: actions/checkout@v2 -- uses: actions/setup-dotnet@v1 +- uses: actions/setup-dotnet@v2 with: dotnet-version: '3.1.x' # SDK Version to use; x will use the latest version of the 3.1 channel - run: dotnet build @@ -36,7 +36,7 @@ Multiple versions: steps: - uses: actions/checkout@v2 - name: Setup dotnet - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v2 with: dotnet-version: | 3.1.x @@ -47,7 +47,7 @@ Preview version: ```yml steps: - uses: actions/checkout@v2 -- uses: actions/setup-dotnet@v1 +- uses: actions/setup-dotnet@v2 with: dotnet-version: '6.0.x' include-prerelease: true @@ -66,7 +66,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup dotnet - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v2 with: dotnet-version: ${{ matrix.dotnet }} - run: dotnet build @@ -81,11 +81,11 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup dotnet - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v2 with: dotnet-version: '2.1.x' - name: Setup dotnet - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v2 with: dotnet-version: '3.1.x' - run: dotnet build @@ -97,7 +97,7 @@ Authentication for nuget feeds: steps: - uses: actions/checkout@v2 # Authenticates packages to push to GPR -- uses: actions/setup-dotnet@v1 +- uses: actions/setup-dotnet@v2 with: dotnet-version: '3.1.x' # SDK Version to use. source-url: https://nuget.pkg.github.com//index.json @@ -110,7 +110,7 @@ steps: run: dotnet nuget push /bin/Release/*.nupkg # Authenticates packages to push to Azure Artifacts -- uses: actions/setup-dotnet@v1 +- uses: actions/setup-dotnet@v2 with: source-url: https://pkgs.dev.azure.com//_packaging//nuget/v3/index.json env: @@ -120,7 +120,7 @@ steps: # Authenticates packages to push to nuget.org. # It's only the way to push a package to nuget.org feed for macOS/Linux machines due to API key config store limitations. -- uses: actions/setup-dotnet@v1 +- uses: actions/setup-dotnet@v2 with: dotnet-version: 3.1.x - name: Publish the package to nuget.org @@ -145,7 +145,7 @@ build: DOTNET_NOLOGO: true steps: - uses: actions/checkout@main - - uses: actions/setup-dotnet@v1 + - uses: actions/setup-dotnet@v2 with: dotnet-version: '3.1.x' # SDK Version to use. ``` diff --git a/docs/contributors.md b/docs/contributors.md index ae9dfe8..69daca4 100644 --- a/docs/contributors.md +++ b/docs/contributors.md @@ -26,9 +26,9 @@ With any contribution please take time to consider how this can be tested to mai ## Creating new version Details on versioning can be found here: https://github.com/actions/toolkit/blob/main/docs/action-versioning.md -Create a new release using the UI. Version format should be `v1.x.x`. Creating a new major version requires reaction from users and should be done only with breaking changes. -Once the new release is created, the v1 tag needs to be updated as well. +Create a new release using the UI. Version format should be `v2.x.x`. Creating a new major version requires reaction from users and should be done only with breaking changes. +Once the new release is created, the v2 tag needs to be updated as well. ``` -git tag -fa v1 -m "Update v1 tag" -git push origin v1 --force +git tag -fa v2 -m "Update v2 tag" +git push origin v2 --force ```