File: release-upload.sh

package info (click to toggle)
trac 1.6-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,620 kB
  • sloc: python: 81,903; javascript: 2,219; makefile: 561; sh: 92; xml: 12
file content (16 lines) | stat: -rwxr-xr-x 499 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh

set -ex

keyfile="$GITHUB_WORKSPACE/edgewall_github_key"
known_hosts="$GITHUB_WORKSPACE/edgewall_host_key"

if [ -n "$EDGEWALL_KEY_BASE64" ]; then
    echo "$EDGEWALL_KEY_BASE64" | base64 -d >"$keyfile"
    echo "$EDGEWALL_HOST_KEY" >"$known_hosts"
    chmod 0600 "$keyfile"
    scp -i "$keyfile" -o "UserKnownHostsFile $known_hosts" \
        dist/Trac-* github@edgewall.org:/var/ftp/pub/trac/incoming
else
    echo "::warning:: Skipped uploading package files to edgewall.org" 1>&2
fi