Skip to content

Commit

Permalink
Fixed documentation and pipeline
Browse files Browse the repository at this point in the history
Fixed push action and documentation
  • Loading branch information
nazarii-taran-nixs authored Dec 21, 2022
2 parents 8a9c210 + 72bf72e commit f9d304c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 28 deletions.
13 changes: 0 additions & 13 deletions .github/actions/setvars/action.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/variables/versioning.env

This file was deleted.

16 changes: 4 additions & 12 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,18 @@ jobs:
- name: Install dotnet
uses: actions/setup-dotnet@v1

- name: Set Environment Variables
uses: ./.github/actions/setvars
with:
varFilePath: ./.github/variables/versioning.env

- name: Restore packages
run: dotnet restore ${{ env.NUGET_PROJECT_PATH }}

- name: Build project
run: dotnet build ${{ env.NUGET_PROJECT_PATH }}/NIX.Analyzers.csproj --no-restore

- name: Generate build number
id: buildnumber
uses: einaregilsson/build-number@v3
with:
token: ${{ secrets.github_token }}
prefix: ${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}
- name: 'Get Version'
id: version
uses: battila7/get-version-action@v2

- name: Pack project
run: dotnet pack ${{ env.NUGET_PROJECT_PATH }}/NIX.Analyzers.csproj /p:PackageVersion=${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}.$(($BUILD_NUMBER-1)) --no-restore --no-build --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
run: dotnet pack ${{ env.NUGET_PROJECT_PATH }}/NIX.Analyzers.csproj /p:PackageVersion=${{ steps.version.outputs.version-without-v }} --no-restore --no-build --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}

- name: Push package
run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🔍 NIX .NET StyleCop Analyzers
# 🔍 NIX .NET Analyzers

Custom _**Roslyn Analyzers**_ which NIX team uses to enforce coding standards

Expand Down

0 comments on commit f9d304c

Please sign in to comment.