mirror of
https://github.com/real-zony/ZonyLrcToolsX.git
synced 2025-07-01 20:30:41 +00:00
fix: Fixed jobs variable share problem.
This commit is contained in:
parent
f597e24ff7
commit
ba91108ca4
88
.github/workflows/dotnet.yml
vendored
88
.github/workflows/dotnet.yml
vendored
@ -3,8 +3,8 @@ name: .NET
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ dev ]
|
branches: [ dev ]
|
||||||
# paths:
|
# paths:
|
||||||
# - "versions/**"
|
# - "versions/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ dev ]
|
branches: [ dev ]
|
||||||
|
|
||||||
@ -12,48 +12,50 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Get build version
|
- name: Get build version
|
||||||
id: date
|
id: date
|
||||||
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
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v2
|
uses: actions/setup-dotnet@v2
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.x
|
dotnet-version: 6.0.x
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
- name: Publish
|
- name: Publish
|
||||||
working-directory: ./src/ZonyLrcTools.Cli
|
working-directory: ./src/ZonyLrcTools.Cli
|
||||||
run: |
|
run: |
|
||||||
ls -a
|
ls -a
|
||||||
chmod +x ./publish.sh
|
chmod +x ./publish.sh
|
||||||
./publish.sh
|
./publish.sh
|
||||||
mv ./TempFiles ../../
|
mv ./TempFiles ../../
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
PUBLISH_VERSION: ${{ steps.date.outputs.date }}
|
PUBLISH_VERSION: ${{ steps.date.outputs.date }}
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: release-files
|
name: release-files
|
||||||
path: |
|
path: |
|
||||||
./TempFiles
|
./TempFiles
|
||||||
./versions/release.md
|
./versions/release.md
|
||||||
|
outputs:
|
||||||
|
version: ${{ steps.date.outputs.date }}
|
||||||
release:
|
release:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: release-files
|
name: release-files
|
||||||
path: .
|
path: .
|
||||||
- name: Upload Release
|
- name: Upload Release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
artifacts: "./TempFiles/*.zip"
|
artifacts: "./TempFiles/*.zip"
|
||||||
token: ${{ secrets.GITHUBACTIONS }}
|
token: ${{ secrets.GITHUBACTIONS }}
|
||||||
tag: ZonyLrcToolsX_Alpha.${{ steps.date.outputs.date }}
|
tag: ZonyLrcToolsX_Alpha.${{ needs.build.outputs.version }}
|
||||||
commit: dev
|
commit: dev
|
||||||
bodyFile: ./versions/release.md
|
bodyFile: ./versions/release.md
|
Loading…
x
Reference in New Issue
Block a user