天道酬勤,学无止境

github-actions

Release .Net Core Apps on GitHub Automated

I wan't to make .Net Core App in a GitHub Repos that builds automized and pushes the binaries of the build zipped to a new Release, but I have no idea to set this on GitHub up. So for example I have my .Net Core Console Application and pull my branch with changes into master. Now the build should start(thats what I have) after the build the binaries should be zipped and attached to a new Release, so there would be continious new Releases. Hopefully someone understand and can Help. Here is my workflow till now name: .NET Core on: push: branches: [ master ] pull_request: branches: [ master ]

2021-10-24 02:09:45    分类:问答    github   .net-core   DevOps   github-actions

I cant get gitHub actions to publish my package build to nuget.pkg.github

I have been trying for a few months now, just to get GitHub actions to push a build to the gitHub packages, everytime i come back, try something else, nothing seems to work and it isnt making any sense. I have just seen a new link with more details added for gitActions here: I got excited, clicked, and see more code than previous had: // Step 1: Authenticate (if this is the first time) Note you must also pass --store-password-in-clear-text on non-Windows systems. $ dotnet nuget add source https://nuget.pkg.github.com/xxxxx/index.json -n github -u xxxxx -p GH_TOKEN [--store-password-in-clear

2021-10-23 20:37:22    分类:问答    github   github-actions

在 Azure Pipelines 托管的 Linux 代理上运行 Cypress.io(Run Cypress.io on Azure Pipelines Hosted Linux Agent)

问题 我正在尝试在 Azure Pipelines 的托管 Linux 池上运行 Cypress 测试。 不幸的是,托管代理没有安装 Cypress 的所有依赖项。 运行记录的apt-get不起作用: 2018-05-18T21:03:14.7423331Z ##[section]Starting: Install cypress dependencies 2018-05-18T21:03:14.7474742Z ============================================================================== 2018-05-18T21:03:14.7488281Z Task : Bash 2018-05-18T21:03:14.7501148Z Description : This is an early preview. Run a Bash script on macOS, Linux, or Windows 2018-05-18T21:03:14.7513088Z Version : 3.127.0 2018-05-18T21:03:14.7524823Z Author : Microsoft Corporation 2018-05-18T21:03:14.7537179Z Help : [More

2021-10-23 04:42:44    分类:技术分享    azure-devops   azure-pipelines   cypress   github-actions   azure-pipelines-release-pipeline

Azure functions deploy from github actions results in Error: connect ECONNREFUSED 127.0.0.1:443

I have the following yaml file in my .github/workflows folder which I got from here. name: Deploy Python project to Azure Function App on: [push] env: AZURE_FUNCTIONAPP_NAME: zypp-covid # set this to your application's name AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root PYTHON_VERSION: '3.8' # set this to the python version to use (supports 3.6, 3.7, 3.8) jobs: build-and-deploy: runs-on: ubuntu-latest steps: - name: 'Checkout GitHub Action' uses: actions/checkout@master - name: Setup Python ${{ env.PYTHON_VERSION }}

2021-10-22 12:31:49    分类:问答    azure   azure-functions   github-actions

Access a container by hostname in github actions from within an action

I start a docker container within my github action and try to access it from an action. But the action is not able to resolve the hostname. How do add my container to the same docker network as the action and let the action access it by its hostname? steps: - name: Run Fuseki run: docker run -p 3030:3030 --name fuseki -d stain/jena-fuseki /jena-fuseki/fuseki-server --file=/staging/aksw.org.nt /aksw - name: curl uses: wei/curl@master with: args: https://fuseki:3030/aksw The complete file is available on GitHub.

2021-10-21 18:49:17    分类:问答    docker   github-actions   docker-networking   docker-network

GitHub Action error: "Top level 'runs:' section is required"

I am trying to get a private GitHub action to work within my private GitHub org. The private repo that contains these workflow 'templates' has this simple file structure as I'm just trying to get the bare minimum to work: . ├── .git ├── test │ ├── action.yml And the action.yml file contents are: name: Test on: push jobs: test: name: Test runs-on: ubuntu-latest steps: - name: Echo run: | echo Heyyyyy I am trying to use this action in another private repo with a workflow file with these contents: name: Test on: push: branches: - master jobs: test: name: Test runs-on: ubuntu-latest steps: - uses

2021-10-21 15:39:20    分类:问答    github-actions

What does the http request to trigger a deployment event look like?

I want to fire a deployment event but I don't really understand the http request I need to send in order for it to work. What does minimal request look like? curl -vvv is good, since I'll be doing it with shell.

2021-10-21 15:20:08    分类:问答    github   github-actions

How to save the output of a bash command to output parameter in github actions

This is similar to what is being asked here but with more explanation and desire for an up-to-date answer (answer uses set-env which is now deprecated) Say I have the following github action yaml: name: pull-request-pipeline on: [pull_request] jobs: deploy-to-dev-and-test: runs-on: ubuntu-latest steps: - name: Checkout action uses: actions/checkout@v2 - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-west-2 - name: Update API

2021-10-20 03:23:58    分类:问答    github   github-actions

upload artifact in GitHub Action

How do I update the following code so that artifact contains a folder named 'Scripts' and all the files are copied to 'Scripts' folder? - name: copy scripts run: Copy 'Scripts/' '${{ github.workspace }}/Scripts' shell: powershell - name: publish artifact uses: actions/upload-artifact@v2 with: path: ${{ github.workspace }}/Scripts name: ${{ github.run_number }}

2021-10-20 01:45:27    分类:问答    github   github-actions

Auth error trying to copy repo with Github Actions, take 2

This is a followup to this question, per @bk2204's request. I'm trying to mirror a repo from one org to another using Github Actions. The step in question is: - name: Copy to Cloudyr if: runner.os == 'Linux' # && github.ref == 'refs/heads/master' env: token: "${{ secrets.ghPat }}" run: | export CLOUDYR_REPO=$(echo $GITHUB_REPOSITORY | sed "s/Azure/cloudyr/") git config -l | grep 'http\..*\.extraheader' | cut -d= -f1 | \ xargs -L1 git config --unset-all git push --prune https://token:$token@github.com/${CLOUDYR_REPO}.git +refs/remotes/origin/*:refs/heads/* +refs/tags/*:refs/tags/* However, this

2021-10-20 01:17:44    分类:问答    git   github   github-actions