mycroforge/.gitea/workflows/build.yml
mdnapo 5d49b9ab2d
Some checks failed
Build MycroForge.CLI / test (push) Failing after 44s
Test MycroForge.CLI / test (push) Has been skipped
Added directory change to MycroForge.CLI
2024-10-06 12:24:46 +02:00

25 lines
944 B
YAML

name: Build MycroForge.CLI
run-name: ${{ gitea.actor }} triggered a build for the MycroForge.CLI
on: [ push ]
jobs:
test:
runs-on: ubuntu-latest
# if: gitea.ref == 'refs/heads/main'
steps:
- uses: https://github.com/actions/checkout@v4
- uses: https://github.com/actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- name: "Build MycroForge.CLI as a NuGet package"
run: cd MycroForge.CLI && dotnet pack -v d
- name: "Add package source"
run: |
dotnet nuget add source --name devdisciples \
--username ${{secrets.NUGET_USER}} \
--password ${{ NUGET_PASS }} \
--store-password-in-clear-text \
https://git.devdisciples.com/api/packages/devdisciples/nuget/index.json
- name: "Run MycroForge.CLI.Tests"
run: dotnet nuget push nupkg/MycroForge.CLI.1.0.1.nupkg --source devdisciples