Skip to content

Commit

Permalink
enable the manifest_upload action in the 2.4_manifest branch
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed May 10, 2024
1 parent 5de6bb3 commit 4164341
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/manifest_upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: manifest upload

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-22.04

steps:
- name: "Set up SSH Agent"
if: env.SSH_PRIVATE_KEY != null
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
SSH_PRIVATE_KEY: ${{ secrets.DOWNLOADS_HOSTGATOR_DOT_MIXXX_DOT_ORG_KEY }}
SSH_HOST: downloads-hostgator.mixxx.org
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${SSH_PRIVATE_KEY}"
mkdir -p "${HOME}/.ssh"
ssh-keyscan "${SSH_HOST}" >> "${HOME}/.ssh/known_hosts"
echo "SSH_AUTH_SOCK=${SSH_AUTH_SOCK}" >> "${GITHUB_ENV}"
- name: Delete obsolete files
if: env.SSH_AUTH_SOCK != null
run: |
rsync --verbose --archive --times --recursive "manifest/" "${SSH_USER}@${SSH_HOST}:${DESTDIR}/"
env:
DESTDIR: public_html/releases/2.4.1/
SSH_HOST: downloads-hostgator.mixxx.org
SSH_USER: mixxx

0 comments on commit 4164341

Please sign in to comment.