upd zad5
This commit is contained in:
parent
b19c661c23
commit
c8bc122954
@ -1,12 +1,14 @@
|
|||||||
name: First CI
|
name: First CI
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
rid: ["win-x64", "linux-x64"]
|
rid: ["win-x64", "linux-x64"]
|
||||||
|
outputs:
|
||||||
|
id: ${{ matrix.rid }}-output
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -20,12 +22,17 @@ jobs:
|
|||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
||||||
- name: Publish artifacts
|
- name: Publish artifacts
|
||||||
|
id: publish
|
||||||
run: |
|
run: |
|
||||||
dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true
|
dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true
|
||||||
echo "::set-output name=artifact-path::app"
|
echo "::set-output name=artifact-path::app"
|
||||||
|
|
||||||
|
upload:
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.rid }}-artifacts
|
name: ${{ needs.build.outputs.id }}
|
||||||
path: ${{ steps.publish.outputs.artifact-path }}
|
path: ${{ needs.build.outputs[format('{0}-output', matrix.rid)] }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user