Skip to content

Commit

Permalink
update release steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Jan 2, 2021
1 parent 7c7db78 commit 51b7f36
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,6 @@ jobs:
with:
name: nupkg
path: ${{ env.PROJECT_NAME }}/bin/Release/*.nupkg
prerelease:
needs: build
if: github.ref == 'refs/heads/develop'
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/download-artifact@v1
with:
name: nupkg
- name: Push to GitHub Feed
run: |
for f in ./nupkg/*.nupkg
do
curl -vX PUT -u "$GITHUB_USER:$GITHUB_TOKEN" -F package=@$f $GITHUB_FEED
done
deploy:
needs: build
if: github.event_name == 'release'
Expand All @@ -72,6 +57,10 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Create Release NuGet package
run: |
arrTag=(${GITHUB_REF//\// })
Expand Down

0 comments on commit 51b7f36

Please sign in to comment.