-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.03 KB
/
publish.yml
File metadata and controls
33 lines (33 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Toolkit Publish
defaults:
run:
shell: bash -ileo pipefail {0}
on:
workflow_dispatch:
inputs:
id:
description: "Software id"
required: true
default: "ocptk"
version:
description: "Software version"
required: true
default: "1.11.0"
jobs:
build:
runs-on: ["self-hosted","cloud"]
steps:
- name: Basic info
run: |
echo "Build for ${{ github.ref }} branch in ${{ github.repository }} repository."
echo "Job triggered by ${{ github.event_name }}, on self-hosted ${{ runner.os }}."
- name: Check out repository
uses: actions/checkout@v3
# - name: Setup Rclone
# uses: AnimMouse/setup-rclone@v1
# with:
# rclone_config: ${{ secrets.RCLONE_CONFIG }}
- name: Publish
run: |
source scripts/prepare.sh ${{ github.event.inputs.version }} ${{ github.event.inputs.id }}
source scripts/publish_src.sh ${{ github.event.inputs.version }} ${{ github.event.inputs.id }}