From ec8c98c49c65264188884d94a703fb00d7273cf8 Mon Sep 17 00:00:00 2001 From: Tymko Oleg Date: Fri, 22 Jan 2021 20:01:14 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0=20release.y?= =?UTF-8?q?ml=20=D0=B8=D0=B7=20https://github.com/silverbulleters/oscript-?= =?UTF-8?q?actions-template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd47a73..9a77920 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,16 @@ +# MIT License +# Copyright (C) 2020 Tymko Oleg and contributors +# All rights reserved. + name: Подготовка релиза и публикация в хабе # Только события создания и изменения релиза on: release: types: [published, edited] +env: + PACKAGE_MASK: gitrules-*.ospx + jobs: build: runs-on: ${{ matrix.os }} @@ -12,7 +19,6 @@ jobs: matrix: os: [ubuntu-latest] oscript_version: ['1.4.0'] - package_mask: ["*.ospx"] steps: # Загрузка проекта @@ -34,20 +40,20 @@ jobs: - name: Сборка пакета run: opm build - - name: Заливка артифактов + - name: Заливка артефактов uses: actions/upload-artifact@v2 with: name: package.zip - path: ./${{ matrix.package_mask }} + path: ./${{ env.PACKAGE_MASK }} - name: Заливка в релиз uses: AButler/upload-release-assets@v1.0 with: - files: ./${{ matrix.package_mask }} + files: ./${{ env.PACKAGE_MASK }} repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Публикация в hub.oscript.io shell: bash - run: opm push -f ./${{ matrix.package_mask }} --token ${{ env.TOKEN }} -c stable + run: opm push -f ./${{ env.PACKAGE_MASK }} --token ${{ env.TOKEN }} -c stable env: TOKEN: ${{ secrets.OSHUB_TOKEN }} \ No newline at end of file