Skip to content

Commit

Permalink
Change nightly builds to use date tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaioru committed Aug 5, 2022
1 parent 96d70f6 commit 50cd9f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/publish-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Pack
run: dotnet pack --configuration Release --version-suffix "nightly.$GITHUB_RUN_NUMBER" --output artifacts
run: dotnet pack --configuration Release --version-suffix "nightly.${{ steps.date.outputs.date }}" --output artifacts
- name: Publish
run: dotnet nuget push artifacts/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"

0 comments on commit 50cd9f1

Please sign in to comment.