Workflow file for this run
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
# MIT License | |
# Copyright (C) 2020 Tymko Oleg <[email protected]> and contributors | |
# All rights reserved. | |
name: Подготовка релиза и публикация в хабе | |
# Только события создания и изменения релиза | |
on: | |
release: | |
types: [published, edited] | |
env: | |
PACKAGE_MASK: entity-*.ospx | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
oscript_version: ['1.8.3'] | |
steps: | |
# Загрузка проекта | |
- name: Актуализация | |
uses: actions/checkout@v4 | |
# Установка OneScript конкретной версии | |
- name: Установка OneScript | |
uses: otymko/[email protected] | |
with: | |
version: ${{ matrix.oscript_version }} | |
# Установка зависимостей пакета | |
- name: Установка зависимостей | |
run: | | |
opm install opm | |
opm install | |
- name: Сборка пакета | |
run: opm build . | |
- name: Заливка артефактов | |
uses: actions/upload-artifact@v4 | |
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: bash | |
run: opm push -f ./${{ env.PACKAGE_MASK }} --token ${{ secrets.PUSH_TOKEN }} -c stable |