nightly push action rework v6

Failed due to incorrect csproj name
This commit is contained in:
Eliot Jones
2021-08-14 21:07:53 -04:00
parent c77e2f7952
commit 889063f83c

View File

@@ -2,24 +2,24 @@ name: Nightly Release
on: on:
schedule: schedule:
- cron: '0 0 * * *' - cron: "0 0 * * *"
jobs: jobs:
check_date: check_date:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Check latest commit name: Check latest commit
outputs: outputs:
should_run: ${{ steps.should_run.outputs.should_run }} should_run: ${{ steps.should_run.outputs.should_run }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: print latest_commit - name: print latest_commit
run: echo ${{ github.sha }} run: echo ${{ github.sha }}
- id: should_run - id: should_run
continue-on-error: true continue-on-error: true
name: check latest commit is less than a day ago name: check latest commit is less than a day ago
if: ${{ github.event_name == 'schedule' }} if: ${{ github.event_name == 'schedule' }}
run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false" run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false"
build_and_publish_nightly: build_and_publish_nightly:
needs: check_date needs: check_date
if: ${{ needs.check_date.outputs.should_run != 'false' }} if: ${{ needs.check_date.outputs.should_run != 'false' }}
@@ -41,12 +41,12 @@ jobs:
$newVer = .\tools\generate-nightly-version.ps1; .\tools\set-version.ps1 $newVer $newVer = .\tools\generate-nightly-version.ps1; .\tools\set-version.ps1 $newVer
- name: Restore packages - name: Restore packages
run: dotnet restore tools/UglyToad.PdfPig.Package/UglyToad.PdfPig.Package.sln run: dotnet restore tools/UglyToad.PdfPig.Package/UglyToad.PdfPig.Package.csproj
- name: Build package - name: Build package
run: dotnet pack -c Release -o package tools/UglyToad.PdfPig.Package/UglyToad.PdfPig.Package.sln run: dotnet pack -c Release -o package tools/UglyToad.PdfPig.Package/UglyToad.PdfPig.Package.csproj
- name: Publish Nuget to GitHub registry - name: Publish Nuget to GitHub registry
run: dotnet nuget push ./package/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json run: dotnet nuget push ./package/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}