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