From d035251258c75ec8a1586f8e42262abf9cf26a02 Mon Sep 17 00:00:00 2001 From: Mohammad Mahdi Mohammadi Date: Sat, 4 Jan 2025 15:48:28 +0330 Subject: [PATCH] Minor fixes to gitea actions --- .gitea/workflows/gitea-ci.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/gitea-ci.yml b/.gitea/workflows/gitea-ci.yml index 987e084..ee3b9cf 100755 --- a/.gitea/workflows/gitea-ci.yml +++ b/.gitea/workflows/gitea-ci.yml @@ -16,12 +16,8 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # all history for all branches and tags - - name: Setup .NET Core - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 9.0.x - - name: Install dependencies - run: sudo apt-get update && sudo apt-get install -y tar + - name: Install dependencies and .NET sdk + run: sudo apt-get update && sudo apt-get install -y tar dotnet-sdk-9.0 - name: Install telegram bot library run: dotnet nuget add source https://pkgs.dev.azure.com/tgbots/Telegram.Bot/_packaging/release/nuget/v3/index.json -n Telegram.Bot - name: dotnet publish @@ -29,10 +25,11 @@ jobs: - name: Create tarball run: tar -czvf publish.tar.gz -C bin/Release/net9.0/linux-x64/publish/ . - name: Upload build artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: - name: publish-tarball + name: publish-x86_64-self-contained path: publish.tar.gz + compression-level: 9 docker: @@ -55,9 +52,11 @@ jobs: uses: actions/cache@v3 with: path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.sha }} + key: ${{ runner.os }}-buildx-${{ github.ref }}-${{ github.sha }} restore-keys: | + ${{ runner.os }}-buildx-${{ github.ref }}- ${{ runner.os }}-buildx- + - name: Extract Docker metadata id: meta uses: docker/metadata-action@v4