-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Обновление файла release.yml из https://github.com/silverbulleters/os…
- Loading branch information
Showing
1 changed file
with
11 additions
and
5 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,9 +1,16 @@ | ||
# MIT License | ||
# Copyright (C) 2020 Tymko Oleg <[email protected]> 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/[email protected] | ||
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 }} |