Minor fixes to gitea actions
This commit is contained in:
@@ -16,12 +16,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # all history for all branches and tags
|
fetch-depth: 0 # all history for all branches and tags
|
||||||
- name: Setup .NET Core
|
- name: Install dependencies and .NET sdk
|
||||||
uses: actions/setup-dotnet@v4
|
run: sudo apt-get update && sudo apt-get install -y tar dotnet-sdk-9.0
|
||||||
with:
|
|
||||||
dotnet-version: 9.0.x
|
|
||||||
- name: Install dependencies
|
|
||||||
run: sudo apt-get update && sudo apt-get install -y tar
|
|
||||||
- name: Install telegram bot library
|
- 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
|
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
|
- name: dotnet publish
|
||||||
@@ -29,10 +25,11 @@ jobs:
|
|||||||
- name: Create tarball
|
- name: Create tarball
|
||||||
run: tar -czvf publish.tar.gz -C bin/Release/net9.0/linux-x64/publish/ .
|
run: tar -czvf publish.tar.gz -C bin/Release/net9.0/linux-x64/publish/ .
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: publish-tarball
|
name: publish-x86_64-self-contained
|
||||||
path: publish.tar.gz
|
path: publish.tar.gz
|
||||||
|
compression-level: 9
|
||||||
|
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
@@ -55,9 +52,11 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: /tmp/.buildx-cache
|
path: /tmp/.buildx-cache
|
||||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
key: ${{ runner.os }}-buildx-${{ github.ref }}-${{ github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
|
${{ runner.os }}-buildx-${{ github.ref }}-
|
||||||
${{ runner.os }}-buildx-
|
${{ runner.os }}-buildx-
|
||||||
|
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
|
Reference in New Issue
Block a user