setup-dotnet | GitHub Actions workflow with a specific version | BPM library
kandi X-RAY | setup-dotnet Summary
kandi X-RAY | setup-dotnet Summary
Set up your GitHub Actions workflow with a specific version of the .NET core sdk
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of setup-dotnet
setup-dotnet Key Features
setup-dotnet Examples and Code Snippets
Community Discussions
Trending Discussions on setup-dotnet
QUESTION
I have a static website which is generating an output
folder to the MyBlog/output
in the master
branch. But I want output to be the source of my GH Pages, I am looking for a way to use output
as the root of gh-pages
branch.
That's my deploy.yml
ANSWER
Answered 2021-Jun-15 at 13:28Ok, this should work. Remove the last line - run: git push
from your action. Then add the following.
QUESTION
So I have a github repo and an azure app service. I have created a github actions setup which when I run I get this result (no errors)
However the web app does not update, the main page is the same as before deployment, nothing has changed. In App Service the GitHub Project value is pointing at the correct project and clicking the link confirms this.
So I am not sure what is failing to happen, below is my yml file.
name: TestDevelopment on: push: branches: - development
...ANSWER
Answered 2021-May-25 at 13:41Interesting, I removed the App Service in Azure and then re-created. Now it works a treat. not sure why but happy as larry now.
QUESTION
I'm trying to use SonarCloud in my GitHub Actions builds to analyze my code and to produce code coverage for my unit tests. I'm working on a .NET 5 solution in Visual Studio 2019.
At first, I was trying the SonarCloud GitHub action (https://github.com/SonarSource/sonarcloud-github-action), but the log told me to use the SonarScanner for .NET. I've setup my workflow file following the documentation: https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-msbuild/. I'm using the dotnet-sonarscanner global tool in the workflow.
The workflow looks like this:
...ANSWER
Answered 2021-May-19 at 08:53The log shows that it tries to connect to local instance of SonarQube, not SonarCloud. You would need to configure additional parameters to connect to SonarCloud: /d:sonar.host.url=https://sonarcloud.io
and /o:
. See SonarCloud version of task documentation and SonarCloud required parameters.
QUESTION
For my ASP .Net Core project, I am trying to integrating CI/CD with Azure. (Nevertheless, I am a newbie to Azure DevOps. I beg your pardon if something is not clear regarding my question)
There, I tried to create an Azure pipe-line with GitHub as follows:
Since I have already created .yml
file in my GitHub Repository I decided to go with the option Existing Azure Pipeline YAML file option.
I have already created the following yml
file in the Github repo in the path .github/workflows/dotnet.yml
Here is the dotnet.yml file:
...ANSWER
Answered 2021-May-15 at 10:45It looks like you try to run github actions build this is why its not working have a look into documentation how to structure your build
In Azure pipeline it will smth like this
QUESTION
I have a problem with Github Action and version package.
I want to automate the delivery of the nuget package. Here is my yml file.
ANSWER
Answered 2021-Apr-24 at 05:30The solution !
When I created the package, the output is -o NugetPackages
with this line :
QUESTION
I have a .NET CI ins GitHub Actions. Before added Dapper.FluentMap to the project, the GitHub Action was working without any errors.
GitHub Actions fails on:
- name: Build with dotnet
run: dotnet build --configuration Release
How can I build on GitHub actions using a NuGet Dapper.FluentMap dependency ?
I am now getting an error in GitBub Actions:
...ANSWER
Answered 2021-Apr-13 at 22:22QUESTION
I have a Visual Studio Solution with 3 projects. These are the main web application project, a unit test project and finally at Selenium, NUnit, SpecFlow regression test project.
I am trying to setup CI/CD in GitHub actions and so far I have in my yaml file 2 jobs.
Job 1 runs the unit tests project against the web project and this passes
...ANSWER
Answered 2021-Apr-02 at 10:46Thanks for your help. I have it working now, below is the script.
QUESTION
I have a CI workflow on github that is meant to copy and deploy my code to a remote server. However, when I adjust a single file, it copies over every single file, not just the ones that changed. My workflow is as follows:
...ANSWER
Answered 2021-Mar-09 at 22:45 steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Dotnet Publish
run: dotnet publish . -c Release -o deploy
- name: Copy files via ssh rsync
uses: trendyminds/github-actions-rsync@master
with:
RSYNC_OPTIONS: -avzr --delete --exclude node_modules --exclude '.git*'
RSYNC_TARGET: ${{ secrets.REMOTE_TARGET }}
RSYNC_SOURCE: /deploy/
env:
SSH_PRIVATE_KEY: ${{ secrets.REMOTE_SSH_KEY }}
SSH_USERNAME: ${{ secrets.REMOTE_USER }}
SSH_HOSTNAME: ${{ secrets.REMOTE_HOST }}
- name: Run SSH command
uses: garygrossgarten/github-action-ssh@release
with:
command: sudo systemctl restart project-name
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
privateKey: ${{ secrets.REMOTE_SSH_KEY }}
QUESTION
I'm unable to authenticate to AWS CodeArtifact from within a GitHub action. The AWS response is always 401.
I'm doing the following steps:
...ANSWER
Answered 2021-Feb-26 at 10:58Here are the steps to authenticate with AWS CodeArtifact in a GitHub action.
High level steps- Create some
./aws/credentials
with a[default]
profile/creds. - Create a
config
file with some specific AWS CodeArtifact creds. - Get an authentication token from AWS CodeArtifact
- Save this authentication token to an environmental variable
- Pull down all the code. This needs to occur BEFORE you start playing with the "nuget sources".
- Manually add the AWS CodeArtifact nuget source to your nuget sources WITH the authentication token.
- Check that AWS CodeArtifact is now in the list of nuget sources.
- dotnet restore.
NOTE: replace things like or
etc.. with your own custom AWS settings, etc.
QUESTION
I know this question has countless asking already. However, I didn't find any working solution for me.
I have a .NET website project and I am using Entity Framework 6. Locally, the project has no problem, everything is running just fine. But when I push it to my master branch on GitHub so that it will be deployed to my Azure website, the message shows up:
Here's my yml file:
...ANSWER
Answered 2021-Feb-17 at 20:22You are building your project here with the 4.7.2 framework, but in the yml you are referencing the .Net Core Framework. Could this be the problem?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install setup-dotnet
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page