Skip to content

Commit

Permalink
исправлена публикация релиза
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Ayukhanov committed Jun 29, 2024
1 parent c111720 commit 97e5d32
Showing 1 changed file with 11 additions and 58 deletions.
69 changes: 11 additions & 58 deletions .github/workflows/release.yml
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 }}

0 comments on commit 97e5d32

Please sign in to comment.