Skip to content

Commit

Permalink
workflow work
Browse files Browse the repository at this point in the history
  • Loading branch information
jensenkd committed Feb 22, 2021
1 parent 8e1c2b5 commit bc4c301
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 63 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
- name: Pack
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
- name: Push
run: dotnet nuget push NuGet.Workflow.${VERSION}.nupkg --source https://nuget.pkg.github.com/jensenkd/index.json --api-key ${GITHUB_TOKEN}
run: dotnet nuget push Plex.Api.${VERSION}.nupkg --source https://nuget.pkg.github.com/jensenkd/index.json --api-key ${GITHUB_TOKEN}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51 changes: 0 additions & 51 deletions .github/workflows/pre-release2.yml

This file was deleted.

12 changes: 2 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,13 @@ jobs:
run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
git branch --remote --contains | grep origin/master
- name: Test Variation 1
run: echo "VERSION=${GITHUB_REF:10}"
- name: Test Variation 2
run: echo "VERSION=${GITHUB_REF}"
- name: Test Variation 3
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}"
- name: Set VERSION variable from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Test Variation 4
run: echo ${VERSION}
- name: Build
run: dotnet build --configuration Release /p:Version=${VERSION}
- name: Pack
run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
#- name: Push
# run: dotnet nuget push NuGet.Workflow.${VERSION}.nupkg --source https://nuget.pkg.github.com/Plex.Api/index.json --api-key ${NUGET_KEY}
- name: Push
run: dotnet nuget push Plex.Api.${VERSION}.nupkg --source https://nuget.pkg.github.com/Plex.Api/index.json --api-key ${NUGET_KEY}
env:
GITHUB_TOKEN: ${{ secrets.NUGET_KEY }}
1 change: 0 additions & 1 deletion Plex.Api.sln
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
.github\workflows\build.yml = .github\workflows\dotnet.yml
.github\workflows\release.yml = .github\workflows\release.yml
.github\workflows\pre-release.yml = .github\workflows\pre-release.yml
.github\workflows\pre-release2.yml = .github\workflows\pre-release2.yml
.github\workflows\codeql-analysis.yml = .github\workflows\codeql-analysis.yml
EndProjectSection
EndProject
Expand Down

0 comments on commit bc4c301

Please sign in to comment.