Skip to content

Commit

Permalink
Testing out release action
Browse files Browse the repository at this point in the history
  • Loading branch information
einari committed Sep 10, 2021
1 parent da0d5bf commit 2cdd812
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 30 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Build

on:
Expand All @@ -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
37 changes: 19 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: '[email protected]'

- 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

0 comments on commit 2cdd812

Please sign in to comment.