mirror of
https://github.com/real-zony/ZonyLrcToolsX.git
synced 2025-07-01 20:30:41 +00:00
ci: Adjusted the Github pipeline.
Prevent artifact publication when performing PR operations.
This commit is contained in:
parent
5850614663
commit
286731b1a6
6
.github/workflows/dotnet.yml
vendored
6
.github/workflows/dotnet.yml
vendored
@ -17,10 +17,8 @@ jobs:
|
|||||||
run: echo "::set-output name=date::$(date +'%Y%m%d')${{github.run_number}}"
|
run: echo "::set-output name=date::$(date +'%Y%m%d')${{github.run_number}}"
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v2
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 7.0.x
|
dotnet-version: 7.0.x
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
@ -38,6 +36,7 @@ jobs:
|
|||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
retention-days: 1
|
||||||
name: release-files
|
name: release-files
|
||||||
path: |
|
path: |
|
||||||
./TempFiles
|
./TempFiles
|
||||||
@ -45,6 +44,7 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.date.outputs.date }}
|
version: ${{ steps.date.outputs.date }}
|
||||||
release:
|
release:
|
||||||
|
if: github.event_name == 'push'
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user