Skip to content

setup initial challenge https://github.com/OWASP/wrongsecrets/issues/… #9

setup initial challenge https://github.com/OWASP/wrongsecrets/issues/…

setup initial challenge https://github.com/OWASP/wrongsecrets/issues/… #9

Workflow file for this run

name: dotnet package
on:
workflow_dispatch:
push:
paths:
- 'dotnet/**'
- '.github/**'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
runtime: [ 'osx-x64','osx-arm64','win-x64','win-arm64','linux-x64','linux-arm64','linux-musl-x64','linux-musl-arm64']
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Build and Package ${{ matrix.runtime }}
run: |
cd dotnet/dotnetproject
dotnet build dotnetproject.csproj --runtime ${{ matrix.runtime }} --self-contained true
dotnet publish dotnetproject.csproj --runtime ${{ matrix.runtime }} /p:PublishSingleFile=true
ls /home/runner/work/wrongsecrets-binaries/wrongsecrets-binaries/dotnet/dotnetproject/bin/Release/net8.0/${{ matrix.runtime }}/publish/
- name: Uploading executables
uses: actions/upload-artifact@v4
with:
name: executable-dotnet-${{ matrix.runtime }}
path: /home/runner/work/wrongsecrets-binaries/wrongsecrets-binaries/dotnet/dotnetproject/bin/Release/net8.0/${{ matrix.runtime }}/publish/