{"id":20619149,"url":"https://github.com/snsinahub-org/dotnet-cli","last_synced_at":"2026-04-19T03:05:18.100Z","repository":{"id":41350602,"uuid":"498345535","full_name":"snsinahub-org/dotnet-cli","owner":"snsinahub-org","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-01T15:06:20.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-06T19:45:25.792Z","etag":null,"topics":["actions","dotnet","dotnet-core","github-actions"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snsinahub-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-31T13:22:04.000Z","updated_at":"2022-07-09T16:59:51.000Z","dependencies_parsed_at":"2022-09-19T00:51:54.139Z","dependency_job_id":null,"html_url":"https://github.com/snsinahub-org/dotnet-cli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/snsinahub-org/dotnet-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snsinahub-org%2Fdotnet-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snsinahub-org%2Fdotnet-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snsinahub-org%2Fdotnet-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snsinahub-org%2Fdotnet-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snsinahub-org","download_url":"https://codeload.github.com/snsinahub-org/dotnet-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snsinahub-org%2Fdotnet-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260285881,"owners_count":22986475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","dotnet","dotnet-core","github-actions"],"created_at":"2024-11-16T12:10:51.279Z","updated_at":"2026-04-19T03:05:13.065Z","avatar_url":"https://github.com/snsinahub-org.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotnet-cli\n\n## Inputs\n4 types of dotnet sub-commands are available\n- restore\n- build\n- test\n- publish\n\nBased on each action type, different sets of inputs are needed. Please refer to list of available inputs\n\n```YAML\n- uses: snsinahub-org/dotnet-cli@v1.0.0\n  with:\n    \n    # full path of directory containing all dotnet projects\n    # each dotnet project exist in a subdirectory in provided path\n    # Action: build, restore, test, publish\n    # example:\n    #   path: 'C:\\project'\n    path: 'absolute-path-to-projects'    \n    \n    # directory path \n    # Action: test\n    # example:\n    #   test_path: 'C:\\project\\test'\n    test_path: 'absolute-path-to-test-folder'\n    \n    # artifactory publish tag\n    # Action: publish\n    # example: \n    #   newTag: 'v1.0.0'\n    newTag: ''\n    \n    # project configuration file extenstion \n    # Action: build, restore, test, publish\n    # example:\n    #   file_extenstion: '*.csproj'\n    file_extenstion:\n    \n    # path to store artifact temporarily\n    # Action: test, publish\n    # example:\n    #   temp_path: 'c:\\tmp'\n    temp_path:  \n    \n    # build type\n    # Actions: build, test, publish\n    # example:\n    #   build_configuration: 'test'\n    build_configuration:\n    \n    #  Number of levels to recurse \n    # Actions: test\n    # example:\n    #   test_depth: 2\n    test_depth:\n    \n    # dotnet subcommand\n    # Action: build, restore, test, publish\n    # example:\n    #   dotnet_action: build\n    dotnet_action:\n    \n    \n    # specifies if publish artifact is a web application or publish all projects\n    # default true\n    # action: publish\n    # example:\n    #   dotnet_web_publish: 'false'\n    dotnet_web_publish:\n    \n```\n\n## Build\n\n```YAML\n    - name: checkout\n      uses: actions/checkout@v3\n    - uses: actions/setup-dotnet@v2\n      with:\n        dotnet-version: '3.1.x' # SDK Version to use; x will use the latest version of the 3.1 channel\n    - name: donet publish\n      uses : snsinahub-org/dotnet-cli@v1.0.0\n      with:\n        dotnet_action: 'build'\n        path: 'C:\\Users\\Siavash Namvar\\a'\n        file_extenstion: \"*.csproj\"\n        build_configuration: \"release\"\n```\n\n## Restore\n```YAML\n    - name: checkout\n      uses: actions/checkout@v3\n    - uses: actions/setup-dotnet@v2\n      with:\n        dotnet-version: '3.1.x' # SDK Version to use; x will use the latest version of the 3.1 channel\n    - name: donet publish\n      uses : snsinahub-org/dotnet-cli@v1.0.0\n      with:\n        dotnet_action: 'restore'\n        path: 'C:\\Users\\Siavash Namvar\\a'\n        file_extenstion: \"*.csproj\"\n```\n\n## Test\n```YAML\n    - name: checkout\n      uses: actions/checkout@v3\n    - uses: actions/setup-dotnet@v2\n      with:\n        dotnet-version: '3.1.x' # SDK Version to use; x will use the latest version of the 3.1 channel\n    - name: donet publish\n      uses : snsinahub-org/dotnet-cli@v1.0.0\n      with:\n        dotnet_action: 'test'\n        path: 'C:\\Users\\Siavash Namvar\\a'\n        temp_path: 'C:\\Users\\Siavash Namvar\\a_temp'\n        build_configuration: \"release\"                \n        file_extenstion: \"*.csproj\"        \n        test_path: \"test_path\"\n        temp_path: \"temp_path\"\n        test_depth:1        \n```\n\n## Publish\n\n### Publish Web application\n\n```YAML\n    - name: checkout\n      uses: actions/checkout@v3\n    - uses: actions/setup-dotnet@v2\n      with:\n        dotnet-version: '3.1.x' # SDK Version to use; x will use the latest version of the 3.1 channel\n    - name: donet publish\n      uses : snsinahub-org/dotnet-cli@v1.0.0\n      with:\n        dotnet_action: 'publish'\n        path: 'C:\\Users\\Siavash Namvar\\a'\n        temp_path: 'C:\\Users\\Siavash Namvar\\a_temp'\n        build_configuration: \"release\"\n        newTag: \"alpha.1.0.0\"\n        dotnet_web_publish: 'true'\n        file_extenstion: \"*.csproj\"\n```\n\n### Publish ALL\n\n```YAML\n    - name: checkout\n      uses: actions/checkout@v3\n    - uses: actions/setup-dotnet@v2\n      with:\n        dotnet-version: '3.1.x' # SDK Version to use; x will use the latest version of the 3.1 channel\n    - name: donet publish\n      uses : snsinahub-org/dotnet-cli@v1.0.0\n      with:\n        dotnet_action: 'publish'\n        path: 'C:\\Users\\Siavash Namvar\\a'\n        temp_path: 'C:\\Users\\Siavash Namvar\\a_temp'\n        build_configuration: \"release\"\n        newTag: \"alpha.1.0.0\"\n        dotnet_action: 'publish'\n        dotnet_web_publish: 'false'\n        file_extenstion: \"*.csproj\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnsinahub-org%2Fdotnet-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnsinahub-org%2Fdotnet-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnsinahub-org%2Fdotnet-cli/lists"}