-
Notifications
You must be signed in to change notification settings - Fork 188
47 lines (41 loc) · 1.41 KB
/
publish-compass.yaml
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
# Update download center manifest with the latest Compass release info
name: Publish Compass
on:
workflow_dispatch:
inputs:
dryRun:
description: 'Run publish in dry-run mode (WARN: think twice when changing this value, this will override currently published manifest in download center!)'
required: true
default: 'true'
release:
types: [published]
jobs:
publish:
name: Publish updated manifest to download center
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js Environment
uses: actions/setup-node@v3
with:
node-version: 18.19.1
cache: 'npm'
- name: Install [email protected]
run: |
npm install -g [email protected]
- name: Install Dependencies
run: |
npm -v
npm ci
- name: Upload updated download center manifest
env:
DEBUG: 'hadron*,mongo*,compass*'
DOWNLOAD_CENTER_AWS_ACCESS_KEY_ID: ${{ secrets.DOWNLOAD_CENTER_AWS_ACCESS_KEY_ID }}
DOWNLOAD_CENTER_AWS_SECRET_ACCESS_KEY: ${{ secrets.DOWNLOAD_CENTER_AWS_SECRET_ACCESS_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [[ "${{ github.event.inputs.dryRun }}" == "true" ]]; then
export npm_config_dry_run=true
fi
npm run --workspace mongodb-compass upload -- --manifest