mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-08-20 08:49:11 +08:00
use gemini to mark ched gpt's work and improve the action
This commit is contained in:
parent
7dd5d68be3
commit
e6dd2d15c2
18
.github/workflows/nightly_release.yml
vendored
18
.github/workflows/nightly_release.yml
vendored
@ -5,6 +5,9 @@ on:
|
|||||||
- cron: "0 0 * * *"
|
- cron: "0 0 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write # Grant write permission for tagging
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
uses: ./.github/workflows/run_integration_tests.yml
|
uses: ./.github/workflows/run_integration_tests.yml
|
||||||
@ -14,10 +17,14 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
should_run: ${{ steps.check.outputs.should_run }}
|
should_run: ${{ steps.check.outputs.should_run }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Fetch nightly-latest tag
|
- name: Fetch nightly-latest tag
|
||||||
run: |
|
run: |
|
||||||
git fetch origin nightly-latest || true
|
git fetch origin nightly-latest || true
|
||||||
|
|
||||||
- id: check
|
- id: check
|
||||||
run: |
|
run: |
|
||||||
latest_commit=$(git rev-parse origin/nightly-latest || echo "")
|
latest_commit=$(git rev-parse origin/nightly-latest || echo "")
|
||||||
@ -29,16 +36,17 @@ jobs:
|
|||||||
echo "New commit detected."
|
echo "New commit detected."
|
||||||
echo "should_run=true" >> $GITHUB_OUTPUT
|
echo "should_run=true" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
build_and_publish_nightly:
|
build_and_publish_nightly:
|
||||||
needs: [check_publish_needed, tests]
|
needs: [check_publish_needed, tests]
|
||||||
if: ${{ needs.check_publish_needed.outputs.should_run != 'false' }}
|
if: ${{ needs.check_publish_needed.outputs.should_run == 'true' }}
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
name: build_and_publish_nightly
|
name: build_and_publish_nightly
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up dotnet core
|
- name: Set up dotnet core
|
||||||
uses: actions/setup-dotnet@v2
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: |
|
dotnet-version: |
|
||||||
2.1.x
|
2.1.x
|
||||||
@ -61,8 +69,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Publish Nuget to GitHub registry
|
- name: Publish Nuget to GitHub registry
|
||||||
run: dotnet nuget push **/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
|
run: dotnet nuget push **/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Tag latest nightly commit
|
- name: Tag latest nightly commit
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user