-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Artur Ayukhanov
committed
Jun 29, 2024
1 parent
c111720
commit 97e5d32
Showing
1 changed file
with
11 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,15 @@ | ||
# MIT License | ||
# Copyright (C) 2020 Tymko Oleg <[email protected]> and contributors | ||
# All rights reserved. | ||
name: Публикация релиза | ||
|
||
name: Подготовка релиза и публикация в хабе | ||
# Только события создания и изменения релиза | ||
on: | ||
release: | ||
types: [published, edited] | ||
|
||
env: | ||
PACKAGE_MASK: vanessa-runner-*.ospx | ||
release: | ||
types: | ||
- published | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
# runs-on: ${{ matrix.os }} | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# os: [ubuntu-latest] | ||
# oscript_version: ['1.4.0'] | ||
|
||
steps: | ||
# Загрузка проекта | ||
- name: Актуализация | ||
uses: actions/checkout@v2 | ||
|
||
# Установка OneScript конкретной версии | ||
# - name: Установка OneScript | ||
# uses: otymko/[email protected] | ||
# with: | ||
# version: ${{ matrix.oscript_version }} | ||
|
||
# Установка зависимостей пакета | ||
- name: Установка зависимостей | ||
run: | | ||
opm install | ||
# run: | | ||
# opm install opm | ||
# opm install | ||
|
||
- name: Сборка пакета | ||
run: opm build | ||
|
||
- name: Заливка артефактов | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: package.zip | ||
path: ./${{ env.PACKAGE_MASK }} | ||
|
||
- name: Заливка в релиз | ||
uses: AButler/[email protected] | ||
with: | ||
files: ./${{ env.PACKAGE_MASK }} | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Публикация в hub.oscript.io | ||
shell: cmd | ||
run: opm push -f ./${{ env.PACKAGE_MASK }} --token ${{ env.TOKEN }} -c stable | ||
env: | ||
TOKEN: ${{ secrets.OSHUB_TOKEN }} | ||
release: | ||
uses: autumn-library/workflows/.github/workflows/release.yml@v1 | ||
with: | ||
package_mask: "annotations-*.ospx" # change me! | ||
secrets: | ||
PUSH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |