Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GITHUB_REF. #434

Merged
merged 1 commit into from Nov 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/publish-on-tag.yml
Expand Up @@ -16,11 +16,8 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Get previous tag.
id: version
uses: "WyriHaximus/github-action-get-previous-tag@master"
- name: Set NuGet version from tag.
run: echo "::set-env name=NUGET_VERSION::${{steps.version.outputs.tag}}"
- name: Set env
run: echo ::set-env name=NUGET_VERSION::$(echo ${GITHUB_REF:10})
- run: dotnet build -c release -p:Version=${{ env.NUGET_VERSION }}
- name: Publish NuGet package.
run: |
Expand Down