Skip to content

Feature/init2

Feature/init2 #5

Workflow file for this run

name: .NET
on:
push:
branches: ["main", "develop"]
pull_request:
branches: ["main", "develop"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
dotnet-quality: "preview"
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Publish
run: dotnet publish -c Release -r win-x64 -o output
- uses: kzrnm/get-net-sdk-project-versions-action@v1
id: get-version
with:
proj-path: Ellosoft.AwsCredentialsManager/Ellosoft.AwsCredentialsManager.csproj
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with:
name: aws-cred-mgr-${{steps.get-version.outputs.version}}${{ github.ref == 'refs/heads/main' && '' || ('-beta-' && github.run_attempt) }}-win.exe
path: Ellosoft.AwsCredentialsManager/output/*.exe
if-no-files-found: error