summaryrefslogtreecommitdiffstats
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c7d610cd13..00804f8cab 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -368,3 +368,31 @@ jobs:
with:
name: ${{ matrix.artifacts_name }}
path: ${{ matrix.artifacts_path }}
+
+ update_manifest:
+ name: "Update manifest file on download server"
+ runs-on: ubuntu-latest
+ needs: build
+ if: github.event_name == 'push'
+ steps:
+ - name: "Check out repository"
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: "Collect Artifacts Metadata & Write Manifest"
+ if: github.event_name == 'push'
+ run: python3 tools/collect_artifacts_metadata.py
+ env:
+ JOB_DATA: ${{ toJSON(needs.build) }}
+ DEPLOY_DESTPATH: "builds/{git_branch}"
+
+ - name: "Deploy Manifest"
+ if: github.event_name == 'push' && env.SSH_PASSWORD != null
+ run: echo ${{ toJSON(needs) }}
+ env:
+ DESTDIR: public_html/downloads/
+ SSH_HOST: downloads-hostgator.mixxx.org
+ SSH_KEY: packaging/certificates/downloads-hostgator.mixxx.org.key
+ SSH_PASSWORD: ${{ secrets.DOWNLOADS_HOSTGATOR_DOT_MIXXX_DOT_ORG_KEY_PASSWORD }}
+ SSH_USER: mixxx