Files
Simpsons_generator/.gitea/workflows/dotnetbuild_runner.yaml
T
pi-ux-ce dacd03ec1d
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Failing after 2m23s
change push of .exe path
2024-11-04 13:47:36 +00:00

48 lines
1.5 KiB
YAML

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
# env:
# RUNNER_TOOL_CACHE: /toolcache # Runner Tool Cache
strategy:
matrix:
dotnet-version: [ '8.0.x' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
# cache: true
- name: Install dependencies
run: dotnet restore
- name: Test with dotnet
run: dotnet test --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}"
- name: Build the package
run: dotnet build
- name: Publish the package
run: dotnet publish
- name: List files in the repository
run: |
ls /workspace/pi-ux-ce/Simpsons_generator/bin/
- name: List files in the repository
run: |
ls /workspace/pi-ux-ce/Simpsons_generator/bin/Debug/
- name: List files in the repository
run: |
ls /workspace/pi-ux-ce/Simpsons_generator/bin/Debug/net8.0/
- name: List files in the repository
run: |
ls /workspace/pi-ux-ce/Simpsons_generator/bin/Debug/net8.0/publish
- name: Upload dotnet test results
uses: actions/upload-artifact@v4
with:
name: Simpsons-${{ matrix.dotnet-version }}
path: bin\Release\net8.0\linux-x64\publish\*.exe
if: ${{ always() }}