diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd1875e..1de0c82 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,3 @@ - name: Build on: @@ -10,18 +9,19 @@ on: jobs: build: - name: "Build .NET" runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 - with: - clean: false + # - name: Checkout code + # uses: actions/checkout@v2 + + # - name: Setup .Net + # uses: actions/setup-dotnet@v1 + # with: + # dotnet-version: "6.0.100-preview.7.21379.14" + # - name: Build .NET + # run: dotnet build --configuration Release - - name: Setup .Net - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '6.0.100-preview.7.21379.14' - - name: Build .NET - run: dotnet build --configuration Release + - name: Release + id: release + uses: aksio-system/release-action@v1 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7286ac1..66cc757 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,29 +12,30 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 - with: - clean: false + # - name: Checkout code + # uses: actions/checkout@v2 - - name: Setup .Net - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '6.0.100-preview.7.21379.14' - - name: Build .NET - run: dotnet build --configuration Release + # - name: Setup .Net + # uses: actions/setup-dotnet@v1 + # with: + # dotnet-version: '6.0.100-preview.7.21379.14' + # - name: Build .NET + # run: dotnet build --configuration Release - name: Release id: release uses: aksio-system/release-action@v1 + with: + user-name: 'Aksio Build' + user-email: 'build@aksio.no' - - name: Remove any existing artifacts - run: rm -rf ${{ env.NUGET_OUTPUT }} + # - name: Remove any existing artifacts + # run: rm -rf ${{ env.NUGET_OUTPUT }} - - name: Create NuGet packages - if: ${{ steps.release.outputs.should-publish == 'true' }} - run: dotnet pack --no-build --configuration Release -o ${{ env.NUGET_OUTPUT }} -p:PackageVersion=${{ steps.increment-version.outputs.next-version }} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg + # - name: Create NuGet packages + # if: ${{ steps.release.outputs.should-publish == 'true' }} + # run: dotnet pack --no-build --configuration Release -o ${{ env.NUGET_OUTPUT }} -p:PackageVersion=${{ steps.increment-version.outputs.next-version }} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg - - name: Push NuGet packages - if: ${{ steps.release.outputs.should-publish == 'true' }} - run: dotnet nuget push --skip-duplicate '${{ env.NUGET_OUTPUT }}/*.nupkg' --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json + # - name: Push NuGet packages + # if: ${{ steps.release.outputs.should-publish == 'true' }} + # run: dotnet nuget push --skip-duplicate '${{ env.NUGET_OUTPUT }}/*.nupkg' --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json