-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
54 lines (54 loc) · 1.41 KB
/
action.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: 'Publish packages to Manticore repo'
description: 'This action publishes built packages to Manticore repo'
inputs:
distr:
required: true
type: string
arch:
required: true
type: string
type:
required: true
type: string
delimiter:
required: true
type: string
artifact:
required: true
type: string
ssh_key:
required: true
type: string
target:
required: false
type: string
dry_run:
description: 'Allow to run without uploading files itself'
required: false
default: "false"
runs:
using: "composite"
steps:
- name: Download artifact
uses: manticoresoftware/download_artifact_with_retries@main
with:
name: ${{ inputs.artifact }}
path: build
- name: Publishing
shell: bash
run: |
curl -sSL https://raw.githubusercontent.com/manticoresoftware/publish_to_repo/main/run_via_ssh > script
chmod +x script
./script
env:
REMOTE_SERVER: [email protected]
SSH_KEY: ${{ inputs.ssh_key }}
SSH_KEY_LOCATION: /tmp/repo.key
TYPE: ${{ inputs.type }}
DELIMITER: ${{ inputs.delimiter }}
DISTR: ${{ inputs.distr }}
TARGET: ${{ inputs.target }}
DRY_RUN: ${{ inputs.dry_run }}
# Explicitly pass GitHub Actions variables
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_RUN_ATTEMPT: ${{ github.run_attempt }}