Skip to content

Commit

Permalink
Merge branch 'release/v.0.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
arkuznetsov committed May 11, 2022
2 parents 2a1adf0 + d83e243 commit 00200b4
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 66 deletions.
91 changes: 91 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# MIT License
# Copyright (C) 2022 Artem Kuznetsov <[email protected]> and contributors
# All rights reserved.

name: Подготовка релиза и публикация в хабе
# Только события создания и изменения релиза
on:
release:
types: [published, edited]

env:
PACKAGE_MASK: ClientSSH-*.ospx

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
oscript_version: ['1.7.0']

steps:
# Загрузка проекта
- name: Актуализация
uses: actions/checkout@v2

# Установка OneScript конкретной версии
- name: Установка OneScript
uses: otymko/[email protected]
with:
version: ${{ matrix.oscript_version }}

# Установка зависимостей пакета
- name: Установка зависимостей
run: |
cd build
opm install opm
opm install
cd ..
# Установка зависимостей NuGet
- name: Установка зависимостей NuGet
run: nuget restore ./src

# Скачивание и установка документатора
- name: Скачивание и установка документатора
run: |
wget --output-document=./build/OneScriptDocumenter.zip https://github.com/dmpas/OneScriptDocumenter/releases/download/1.0.14/documenter.zip
sudo apt-get install p7zip-full
7z x -o./build/OneScriptDocumenter -y ./build/OneScriptDocumenter.zip
# Сборка компоненты для релиза
- name: Сборка компоненты для релиза
run: |
dotnet restore ./src
dotnet msbuild ./src -property:Configuration=Release
mkdir ./build/bin/
cp -f ./src/oscript-component/bin/Release/net452/*.dll ./build/bin/
cp -f ./src/oscript-component/bin/Release/net452/*.xml ./build/bin/
rm -f ./build/bin/OneScript*.* ./build/bin/ScriptEngine*.* ./build/bin/NewtonSoft*.* ./build/bin/DotNetZip*.*
# Генерация документации
- name: Генерация документации
run: |
chmod +x ./build/OneScriptDocumenter/OneScriptDocumenter.exe
./build/OneScriptDocumenter/OneScriptDocumenter.exe json ./build/bin/syntaxHelp.json ./src/oscript-component/bin/Release/net452/oscript-component.dll
# Сборка пакета OneScript
- name: Сборка пакета
run: opm build -o ./build ./build

# - name: Заливка артефактов
# uses: actions/upload-artifact@v2
# with:
# name: package.zip
# path: ./build/${{ env.PACKAGE_MASK }}

# Заливка в релиз
# - name: Заливка в релиз
# uses: AButler/[email protected]
# with:
# files: ./build/${{ env.PACKAGE_MASK }}
# repo-token: ${{ secrets.GITHUB_TOKEN }}

# Публикация в hub.oscript.io
# - name: Публикация в hub.oscript.io
# shell: bash
# run: opm push -f ./build/${{ env.PACKAGE_MASK }} --token ${{ env.TOKEN }} -c stable
# env:
# TOKEN: ${{ secrets.OSHUB_TOKEN }}
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Oscript SSH client

[![GitHub release](https://img.shields.io/github/release/ArKuznetsov/oscript-ssh.svg?style=flat-square)](https://github.com/ArKuznetsov/oscript-ssh/releases)
[![GitHub license](https://img.shields.io/github/license/ArKuznetsov/oscript-ssh.svg?style=flat-square)](https://github.com/ArKuznetsov/oscript-ssh/blob/develop/LICENSE)
[![GitHub Releases](https://img.shields.io/github/downloads/ArKuznetsov/oscript-ssh/latest/total?style=flat-square)](https://github.com/ArKuznetsov/oscript-ssh/releases)
[![GitHub All Releases](https://img.shields.io/github/downloads/ArKuznetsov/oscript-ssh/total?style=flat-square)](https://github.com/ArKuznetsov/oscript-ssh/releases)

[![Build Status](https://img.shields.io/github/workflow/status/ArKuznetsov/oscript-ssh/%D0%9A%D0%BE%D0%BD%D1%82%D1%80%D0%BE%D0%BB%D1%8C%20%D0%BA%D0%B0%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%B0)](https://github.com/arkuznetsov/oscript-ssh/actions/)
[![Quality Gate](https://open.checkbsl.org/api/project_badges/measure?project=oscript-ssh&metric=alert_status)](https://open.checkbsl.org/dashboard/index/oscript-ssh)
[![Coverage](https://open.checkbsl.org/api/project_badges/measure?project=oscript-ssh&metric=coverage)](https://open.checkbsl.org/dashboard/index/oscript-ssh)
[![Tech debt](https://open.checkbsl.org/api/project_badges/measure?project=oscript-ssh&metric=sqale_index)](https://open.checkbsl.org/dashboard/index/oscript-ssh)

## SSH клиент для oscript

## Примеры использования
Expand Down
56 changes: 0 additions & 56 deletions appveyor.yml

This file was deleted.

5 changes: 3 additions & 2 deletions build/packagedef
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Описание
.Имя("ClientSSH")
.Версия("0.5.0")
.Автор("a.sosnoviy aka lab")
.АдресАвтора("[email protected]")
.Автор("a.sosnoviy aka lab; Artem Kuznetsov")
.АдресАвтора("[email protected]; [email protected]")
.Описание("ssh client для oscript")
.ВерсияСреды("1.7")
.ВключитьФайл("bin")
.ВключитьФайл("package-loader.os")
.ВключитьФайл("../README.md")
.ВключитьФайл("../LICENSE")

0 comments on commit 00200b4

Please sign in to comment.