update actions yaml
Some checks failed
dotnet-publish-nuget / Pack-And-Publish (push) Failing after 2m16s

This commit is contained in:
Mingor(100757) 2024-08-27 18:34:14 +08:00
parent 8a48123dd7
commit c3832df623

View File

@ -3,22 +3,18 @@ on: [push]
env:
DOTNET_VERSION: 8.x
DOTNET_NUGET_SOURCE_URL: https://git.mworkspace.cn/api/packages/GiteaActionsSample/nuget/index.json
jobs:
Pack-And-Publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: List files in the repos
run: ls ${{ gitea.workspace }} && ls $GITEA_WORKSPACE
run: ls ${{ gitea.workspace }}
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
cache: true
source-url: ${{ env.DOTNET_NUGET_SOURCE_URL }}
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_APIKEY}}
- name: Install dependencies
run: dotnet restore -s https://api.nuget.org/v3/index.json
- name: Build
@ -36,4 +32,4 @@ jobs:
with:
platforms: linux/amd64
push: true
tags: [acme_nrop/dotnet-deploy-k8s:latest, acme_nrop/dotnet-deploy-k8s:${{ gitea.sha }}]
tags: acme_nrop/dotnet-deploy-k8s:${{ gitea.sha }}