Skip to content

Commit

Permalink
--amend
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-moussawi committed Jan 1, 2020
1 parent 2f1d5ea commit a30bb49
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push]
jobs:
build:

runs-on: ubuntu-latest
runs-on: windows-latest

steps:
- uses: actions/checkout@v1
Expand All @@ -15,8 +15,16 @@ jobs:
dotnet-version: 2.2.108
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup nuget config
run: sed 's/GITHUB_TOKEN/${{ secrets.GITHUB_TOKEN }}/g' nuget.config > nuget.config
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Push NuGet packages - Nightly Builds
run: dotnet pack --configuration Release && dotnet nuget push "bin/Release/querybuilder.1.0.0.nupkg" --source "github"
run: sed -i 's/GITHUB_TOKEN/${{ secrets.GITHUB_TOKEN }}/' nuget.config

- name: Restore QueryBuilder
run: dotnet restore QueryBuilder/QueryBuilder.csproj --source "https://api.nuget.org/v3/index.json"

- name: Build QueryBuilder
run: dotnet build QueryBuilder/QueryBuilder.csproj --configuration Release --no-restore

- name: Nightly Builds - Create Packages
run: dotnet pack QueryBuilder/QueryBuilder.csproj --configuration Release

- name: Nightly Builds - Push Packages
run: dotnet nuget push "QueryBuilder/bin/Release/*.nupkg" --source "github"
2 changes: 1 addition & 1 deletion nuget.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<packageSources>
<clear />
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
<add key="github" value="https://nuget.pkg.github.com/ahmad-moussawi/index.json" />
<add key="github" value="https://nuget.pkg.github.com/sqlkata/index.json" />
</packageSources>
<packageSourceCredentials>
<github>
Expand Down

0 comments on commit a30bb49

Please sign in to comment.