Update buildproject.yaml
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Gitea Actions Demo
|
name: Build and Release Project
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
@@ -9,18 +9,20 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
dotnet: [ '8.0.405' ]
|
dotnet: [ '8.0.405' ]
|
||||||
publishprofile: [ 'PublishLinuxX64', 'PublishWinX64' ]
|
publishprofile: [ 'PublishLinuxX64', 'PublishWinX64' ]
|
||||||
name: Publish Dotnet ${{ matrix.dotnet }} Profile ${{ matrix.publishprofile }}
|
name: Publish with Dotnet ${{ matrix.dotnet }} and Profile ${{ matrix.publishprofile }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- name: Clone Project
|
||||||
|
uses: actions/checkout@master
|
||||||
- name: Setup dotnet
|
- name: Setup dotnet
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v1
|
||||||
with:
|
with:
|
||||||
dotnet-version: ${{ matrix.dotnet }}
|
dotnet-version: ${{ matrix.dotnet }}
|
||||||
- name: Build/Publish Project
|
- name: Build/Publish Project
|
||||||
run: dotnet publish GiteaTest.sln -p:PublishProfile=${{ matrix.publishprofile }}
|
run: dotnet publish GiteaTest.sln -p:PublishProfile=${{ matrix.publishprofile }}
|
||||||
- run: ls -a
|
- name: Pack Release
|
||||||
- run: tar -cvzf ${{ matrix.publishprofile }}.tar.gz GiteaTest/publish
|
run: tar -cvzf ${{ matrix.publishprofile }}.tar.gz -C GiteaTest/publish .
|
||||||
- uses: akkuman/gitea-release-action@v1
|
- name: Release ${{ matrix.publishprofile }}.tar.gz
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
${{ matrix.publishprofile }}.tar.gz
|
${{ matrix.publishprofile }}.tar.gz
|
||||||
|
|||||||
Reference in New Issue
Block a user