Minor fixes to gitea actions
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user