Skip to content

Reorder cli commands. #92

Reorder cli commands.

Reorder cli commands. #92

Workflow file for this run

name: Build CLI
on:
push:
tags:
- 'cli-*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: setup zip
uses: montudor/[email protected]
- name: setup dotnet
uses: actions/[email protected]
with:
dotnet-version: 8.0.x
- name: publish dotnet
run: |
cd cli/Squidex.CLI/Squidex.CLI
dotnet publish -c Release
- name: publish win-x64
run: |
cd cli/Squidex.CLI/Squidex.CLI
dotnet publish -r win-x64 --self-contained -c Release /p:PublishSingleFile=true
- name: publish win-x86
run: |
cd cli/Squidex.CLI/Squidex.CLI
dotnet publish -r win-x86 --self-contained -c Release /p:PublishSingleFile=true
- name: publish linux-x64
run: |
cd cli/Squidex.CLI/Squidex.CLI
dotnet publish -r linux-x64 --self-contained -c Release /p:PublishSingleFile=true
- name: publish osx-x64
run: |
cd cli/Squidex.CLI/Squidex.CLI
dotnet publish -r osx-x64 --self-contained -c Release /p:PublishSingleFile=true
- name: publish osx-arm64
run: |
cd cli/Squidex.CLI/Squidex.CLI
dotnet publish -r osx-arm64 --self-contained -c Release /p:PublishSingleFile=true
- name: pack dotnet tool
run: |
cd cli/Squidex.CLI/Squidex.CLI
dotnet pack -p:PackDotnetTool=1 -c Release
- name: push dotnet tool to nuget.org
run: |
cd cli/Squidex.CLI/Squidex.CLI/bin/Release
dotnet nuget push **/*.nupkg --source 'https://api.nuget.org/v3/index.json' --skip-duplicate -k ${{ secrets.nuget }}
- name: pack core
run: |
cd cli/Squidex.CLI/Squidex.CLI.Core
dotnet pack -c Release
- name: push core to nuget.org
run: |
cd cli/Squidex.CLI/Squidex.CLI.Core/bin/Release
dotnet nuget push **/*.nupkg --source 'https://api.nuget.org/v3/index.json' --skip-duplicate -k ${{ secrets.nuget }}
- name: create dir
run: |
mkdir cli/Squidex.CLI/Squidex.CLI/bin/Release/out
- name: archive dotnet
run: |
cd cli/Squidex.CLI/Squidex.CLI/bin/Release/net8.0/publish/
zip -r '../../out/dotnet.zip' *
- name: archive win-x64
run: |
cd cli/Squidex.CLI/Squidex.CLI/bin/Release/net8.0/win-x64/publish/
zip -r '../../../out/win-x64.zip' *
- name: archive win-x86
run: |
cd cli/Squidex.CLI/Squidex.CLI/bin/Release/net8.0/win-x86/publish/
zip -r '../../../out/win-x86.zip' *
- name: archive linux-x64
run: |
cd cli/Squidex.CLI/Squidex.CLI/bin/Release/net8.0/linux-x64/publish/
zip -r '../../..//out/linux-x64.zip' *
- name: archive osx-x64
run: |
cd cli/Squidex.CLI/Squidex.CLI/bin/Release/net8.0/osx-x64/publish/
zip -r '../../../out/osx-x64.zip' *
- name: archive osx-arm64
run: |
cd cli/Squidex.CLI/Squidex.CLI/bin/Release/net8.0/osx-arm644/publish/
zip -r '../../../out/osx-arm64.zip' *
- name: release
uses: fnkr/github-action-ghr@v1
env:
GITHUB_TOKEN: ${{ secrets.project }}
GHR_PATH: 'cli/Squidex.CLI/Squidex.CLI/bin/Release/out/'