Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:mudita/mudita-center into CP-3218
Browse files Browse the repository at this point in the history
  • Loading branch information
MateuszMudita committed Dec 20, 2024
2 parents bd3334c + daaefd8 commit f6224b2
Show file tree
Hide file tree
Showing 41 changed files with 2,614 additions and 215 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,6 @@ DEV_API_CONFIG=

# [Dev Mode] Path to directory with flash packages for Mudita Harmony
DEV_FLASH_PACKAGE_PATH=

# Token for using dev server for Kompakt OS update info
KOMPAKT_OS_UPDATE_DEV_TOKEN=
2 changes: 2 additions & 0 deletions .github/workflows/e2e-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
run: |
printenv > .env
- name: Setup environment variables for Windows
Expand Down Expand Up @@ -78,6 +79,7 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
shell: cmd
run: |
SET > .env
Expand Down
86 changes: 82 additions & 4 deletions .github/workflows/e2e-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
pull_request:
types:
- opened
- synchronize
- ready_for_review
- reopened
workflow_dispatch:
Expand All @@ -13,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [Windows, Linux]
os: [Windows, Linux, macOS]
if: startsWith(github.head_ref || github.ref, 'CP-')
environment: development
steps:
Expand All @@ -23,6 +22,46 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18.16.1
- name: Find open port for ChromeBrowser on Linux/Mac
if: matrix.os != 'Windows'
id: find-port-unix
run: |
START_PORT=30000
END_PORT=40000
PORT=$START_PORT
RUNNER_OS="${{ matrix.os }}"
while [ $PORT -le $END_PORT ]; do
if [[ "$RUNNER_OS" == "Linux" ]]; then
nc -z 127.0.0.1 $PORT 2>/dev/null || break
elif [[ "$RUNNER_OS" == "macOS" ]]; then
nc -z -w1 127.0.0.1 $PORT 2>/dev/null || break
fi
PORT=$((PORT+1))
done
if [ $PORT -gt $END_PORT ]; then
echo "No available port found in the range $START_PORT-$END_PORT" >&2
exit 1
fi
echo "CHROME_OPEN_PORT=$PORT" >> $GITHUB_ENV
- name: Find open port for ChromeBrowser on Windows
if: matrix.os == 'Windows'
id: find-port-windows
run: |
$startPort = 30000
$endPort = 40000
$port = $startPort
while ($port -le $endPort) {
$isUsed = (Test-NetConnection -ComputerName 127.0.0.1 -Port $port).TcpTestSucceeded
if (-not $isUsed) {
break
}
$port++
}
if ($port -gt $endPort) {
Write-Error "No available port found in the range $startPort-$endPort"
exit 1
}
echo "CHROME_OPEN_PORT=$port" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8
- name: Setup environment variables for Linux
if: matrix.os == 'Linux'
env:
Expand Down Expand Up @@ -51,6 +90,40 @@ jobs:
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
run: |
printenv > .env
- name: Setup Env for Mac
if: matrix.os == 'macOS'
env:
E2ECI: "true"
TEST_GITHUB_TOKEN: ${{ secrets.MC_GITHUB_ACCESS_TOKEN }}
TEST_BINARY_PATH: "../mudita-center/release/mac/Mudita Center.app/Contents/MacOS/Mudita Center"
PHRASE_API_KEY: ${{ secrets.PHRASE_API_KEY }}
PHRASE_API_URL: ${{ secrets.PHRASE_API_URL }}
PHRASE_API_KEY_DEV: ${{ secrets.PHRASE_API_KEY_DEV }}
MUDITA_CENTER_SERVER_URL: ${{ secrets.MUDITA_CENTER_SERVER_URL }}
MUDITA_CENTER_SERVER_V2_URL: ${{ secrets.MUDITA_CENTER_SERVER_V2_URL }}
ROLLBAR_TOKEN: ${{ secrets.ROLLBAR_TOKEN }}
RELEASES_REPOSITORY_NAME: ${{ secrets.RELEASES_REPOSITORY_NAME }}
PRERELEASES_ENABLED: ${{ secrets.PRERELEASES_ENABLED }}
GITHUB_ACCESS_TOKEN: ${{ secrets.MC_GITHUB_ACCESS_TOKEN }}
LOGIN_MICROSOFT_ONLINE_CLIENT_ID: ${{ secrets.LOGIN_MICROSOFT_ONLINE_CLIENT_ID }}
FONTS_DIRECTORY_URL: ${{ secrets.FONTS_DIRECTORY_URL }}
FRESHDESK_API_URL: ${{ secrets.FRESHDESK_API_URL }}
FRESHDESK_API_TOKEN: ${{ secrets.FRESHDESK_API_TOKEN }}
ANALYTICS_ENABLED: ${{ secrets.ANALYTICS_ENABLED }}
ANALYTICS_API_URL: ${{ secrets.ANALYTICS_API_URL }}
ANALYTICS_API_SITE_ID: ${{ secrets.ANALYTICS_API_SITE_ID }}
FEATURE_TOGGLE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_ENVIRONMENT }}
STATIC_CONFIGURATION_FILE_PATH: ${{ secrets.STATIC_CONFIGURATION_FILE_PATH }}
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
run: |
printenv > .env
- name: Setup environment variables for Windows
Expand Down Expand Up @@ -82,13 +155,14 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
shell: cmd
run: |
SET > .env
- name: Setup dependencies
run: npm run setup
- name: Build App for Linux
if: matrix.os == 'Linux'
- name: Build App for Linux/Mac
if: matrix.os != 'Windows'
run: |
export NODE_OPTIONS="--max-old-space-size=4096"
npm run app:dist
Expand All @@ -109,3 +183,7 @@ jobs:
run: |
cd apps/mudita-center-e2e
npm run e2e:test:cicd:standalone
- name: Run E2E tests headless on Mac
if: matrix.os == 'macOS'
run: |
npm run e2e:test:standalone
2 changes: 2 additions & 0 deletions .github/workflows/e2e-mock-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
run: |
printenv > .env
- name: Setup environment variables for Windows
Expand Down Expand Up @@ -78,6 +79,7 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
shell: cmd
run: |
SET > .env
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/e2e-mock-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
pull_request:
types:
- opened
- synchronize
- ready_for_review
- reopened
workflow_dispatch:
Expand Down Expand Up @@ -51,6 +50,8 @@ jobs:
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: "1"
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
run: |
printenv > .env
- name: Setup environment variables for Windows
Expand Down Expand Up @@ -82,6 +83,7 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: "1"
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
shell: cmd
run: |
SET > .env
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e-mock-pre-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
run: |
printenv > .env
- name: Setup environment variables for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
shell: cmd
run: |
SET > .env
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e-mock-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
run: |
printenv > .env
- name: Setup environment variables for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
shell: cmd
run: |
SET > .env
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e-pre-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
run: |
printenv > .env
- name: Setup environment variables for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
shell: cmd
run: |
SET > .env
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
run: |
printenv > .env
- name: Setup environment variables for Windows
Expand Down Expand Up @@ -79,6 +80,7 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
MOCK_SERVICE_ENABLED: ${{ secrets.MOCK_SERVICE_ENABLED }}
NEW_HELP_ENABLED: ${{ secrets.NEW_HELP_ENABLED }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
shell: cmd
run: |
SET > .env
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nexus-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
DEV_TOOLS_SHORTCUT_ENABLED: "1"
LOCALAPPDATA: ""
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
shell: cmd
run: |
SET > .env
Expand Down Expand Up @@ -74,6 +75,7 @@ jobs:
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
DEV_TOOLS_SHORTCUT_ENABLED: "1"
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
run: |
printenv > .env
- name: Setup Env for Linux
Expand Down Expand Up @@ -101,6 +103,7 @@ jobs:
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
DEV_TOOLS_SHORTCUT_ENABLED: "1"
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
run: |
printenv > .env
- name: Changing app version in packages.json for Linux
Expand Down
29 changes: 15 additions & 14 deletions .github/workflows/nexus-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
pull_request:
types:
- opened
- synchronize
- ready_for_review
- reopened
workflow_dispatch:
Expand Down Expand Up @@ -50,6 +49,7 @@ jobs:
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
DEV_TOOLS_SHORTCUT_ENABLED: "1"
LOCALAPPDATA: ""
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
shell: cmd
run: |
SET > .env
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
DEV_TOOLS_SHORTCUT_ENABLED: "1"
SKIP_MAC_NOTARIZE_ENABLED: "1"
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
run: |
printenv > .env
- name: Setup Env for Linux
Expand Down Expand Up @@ -107,29 +107,30 @@ jobs:
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
DEV_TOOLS_SHORTCUT_ENABLED: "1"
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
run: |
printenv > .env
- name: Changing app version in packages.json for Linux
if: matrix.os == 'Linux'
run: |
export APP_VERSION=`cat apps/mudita-center/package.json | jq -r .version`
export SOURCE_BRANCH=${{ github.ref_name }}
export "ENVIRONMENT_CATALOG_NAME=feature-branch/${{ github.ref_name }}"
export SOURCE_BRANCH=${{ github.head_ref }}
export "ENVIRONMENT_CATALOG_NAME=feature-branch/${{ github.head_ref }}"
export "BUILD_VERSION=-dev.${{ github.run_number }}"
sed -i "s/\"version\": \".*\",/\"version\": \"$APP_VERSION$BUILD_VERSION\",/" apps/mudita-center/package.json
- name: Changing app version in packages.json for Mac
if: matrix.os == 'macOS'
run: |
export APP_VERSION=`cat apps/mudita-center/package.json | jq -r .version`
export SOURCE_BRANCH=${{ github.ref_name }}
export "ENVIRONMENT_CATALOG_NAME=feature-branch/${{ github.ref_name }}"
export SOURCE_BRANCH=${{ github.head_ref }}
export "ENVIRONMENT_CATALOG_NAME=feature-branch/${{ github.head_ref }}"
export "BUILD_VERSION=-dev.${{ github.run_number }}"
sed -i '' "s/\"version\": \".*\",/\"version\": \"$APP_VERSION$BUILD_VERSION\",/" apps/mudita-center/package.json
- name: Changing app version in packages.json for Windows
if: matrix.os == 'Windows'
run: |
$SOURCE_BRANCH = "${{ github.ref_name }}"
$ENVIRONMENT_CATALOG_NAME = "feature-branch/${{ github.ref_name }}"
$SOURCE_BRANCH = "${{ github.head_ref }}"
$ENVIRONMENT_CATALOG_NAME = "feature-branch/${{ github.head_ref }}"
$BUILD_VERSION = "-dev.${{ github.run_number }}"
$APP_VERSION = (Get-Content -Path "apps/mudita-center/version") + $BUILD_VERSION
(Get-Content -Path 'apps/mudita-center/package.json') | ForEach-Object {
Expand Down Expand Up @@ -160,8 +161,8 @@ jobs:
run: |
jq -r -j .version apps/mudita-center/package.json > apps/mudita-center/version
$APP_VERSION = Get-Content -Path "apps/mudita-center/version"
$SOURCE_BRANCH = "${{ github.ref_name }}"
$ENVIRONMENT_CATALOG_NAME = "feature-branch/${{ github.ref_name }}"
$SOURCE_BRANCH = "${{ github.head_ref }}"
$ENVIRONMENT_CATALOG_NAME = "feature-branch/${{ github.head_ref }}"
$NEXUS_USERNAME = "$env:NEXUS_USERNAME"
$NEXUS_PASSWORD = ConvertTo-SecureString "$env:NEXUS_PASSWORD" -AsPlainText -Force
$AUTH = New-Object System.Management.Automation.PSCredential ($NEXUS_USERNAME, $NEXUS_PASSWORD)
Expand All @@ -177,8 +178,8 @@ jobs:
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
export APP_VERSION=`cat apps/mudita-center/package.json | jq -r .version`
export SOURCE_BRANCH=${{ github.ref_name }}
export "ENVIRONMENT_CATALOG_NAME=feature-branch/${{ github.ref_name }}"
export SOURCE_BRANCH=${{ github.head_ref }}
export "ENVIRONMENT_CATALOG_NAME=feature-branch/${{ github.head_ref }}"
cp ./apps/mudita-center/release/builder-debug.yml ./apps/mudita-center/release/builder-debug-linux.yml
curl -u $NEXUS_USERNAME:$NEXUS_PASSWORD --upload-file ./apps/mudita-center/release/Mudita-Center.AppImage https://nexus.mudita.com/repository/mudita-center/releases/$ENVIRONMENT_CATALOG_NAME/$APP_VERSION/Mudita-Center.AppImage
curl -u $NEXUS_USERNAME:$NEXUS_PASSWORD --upload-file ./apps/mudita-center/release/latest-linux.yml https://nexus.mudita.com/repository/mudita-center/releases/$ENVIRONMENT_CATALOG_NAME/$APP_VERSION/latest-linux.yml
Expand All @@ -190,8 +191,8 @@ jobs:
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
export APP_VERSION=`cat apps/mudita-center/package.json | jq -r .version`
export SOURCE_BRANCH=${{ github.ref_name }}
export "ENVIRONMENT_CATALOG_NAME=feature-branch/${{ github.ref_name }}"
export SOURCE_BRANCH=${{ github.head_ref }}
export "ENVIRONMENT_CATALOG_NAME=feature-branch/${{ github.head_ref }}"
cp ./apps/mudita-center/release/builder-debug.yml ./apps/mudita-center/release/builder-debug-mac.yml
curl -u $NEXUS_USERNAME:$NEXUS_PASSWORD --upload-file ./apps/mudita-center/release/Mudita-Center.dmg https://nexus.mudita.com/repository/mudita-center/releases/$ENVIRONMENT_CATALOG_NAME/$APP_VERSION/Mudita-Center.dmg
curl -u $NEXUS_USERNAME:$NEXUS_PASSWORD --upload-file ./apps/mudita-center/release/Mudita-Center.zip https://nexus.mudita.com/repository/mudita-center/releases/$ENVIRONMENT_CATALOG_NAME/$APP_VERSION/Mudita-Center.zip
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nexus-mass-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
LOCALAPPDATA: ""
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
shell: cmd
run: |
SET > .env
Expand Down Expand Up @@ -74,6 +75,7 @@ jobs:
DEV_REDUX_LOGGER_ENABLED: ${{ secrets.DEV_REDUX_LOGGER_ENABLED }}
DEV_DEVICE_LOGGER_ENABLED: ${{ secrets.DEV_DEVICE_LOGGER_ENABLED }}
FEATURE_TOGGLE_RELEASE_ENVIRONMENT: ${{ secrets.FEATURE_TOGGLE_RELEASE_ENVIRONMENT }}
KOMPAKT_OS_UPDATE_DEV_TOKEN: ${{ secrets.KOMPAKT_OS_UPDATE_DEV_TOKEN }}
run: |
printenv > .env
- name: Setup Env for Linux
Expand Down
Loading

0 comments on commit f6224b2

Please sign in to comment.