Server API Build Apps #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Server API Build Apps | |
on: | |
workflow_run: | |
workflows: ['Release Apps'] | |
branches: [apps] | |
types: | |
- completed | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
release-linux: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [buildjet-8vcpu-ubuntu-2204] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
with: | |
repository: 'ever-co/ever-gauzy' | |
ref: master | |
- name: Install Node.js, NPM and Yarn | |
uses: buildjet/setup-node@v4 | |
with: | |
node-version: '20.11.1' | |
cache: 'yarn' | |
- name: Change permissions | |
run: 'sudo chown -R $(whoami) ./*' | |
- name: Install system dependencies | |
run: 'sudo apt-get update && sudo apt install -y curl gnupg git libappindicator3-1 ca-certificates binutils icnsutils graphicsmagick' | |
- name: Fix node-gyp and Python | |
run: python3 -m pip install packaging setuptools | |
- name: Install latest version of NPM | |
run: 'sudo npm install -g npm@9' | |
- name: Install latest node-gyp package | |
run: 'sudo npm install --quiet -g node-gyp@9.3.1' | |
- name: Install Yarn dependencies | |
run: 'yarn install --network-timeout 1000000 --frozen-lockfile' | |
- name: Bootstrap Yarn | |
run: 'yarn bootstrap' | |
- name: Bump version | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const script = require('./.scripts/bump-version-electron.js') | |
script.serverapi(true).then(console.log) | |
env: | |
PROJECT_REPO: 'https://github.com/ever-co/ever-teams.git' | |
DESKTOP_API_SERVER_APP_NAME: 'ever-teams-api-server' | |
COMPANY_SITE_LINK: 'https://ever.team' | |
DESKTOP_API_SERVER_APP_DESCRIPTION: 'Ever Teams API Server' | |
DESKTOP_API_SERVER_APP_ID: 'com.ever.everteamsapiserver' | |
- name: Build API Server App | |
run: 'yarn build:gauzy-api-server:linux:release:gh' | |
env: | |
USE_HARD_LINKS: false | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
EP_GH_IGNORE_TIME: true | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
SENTRY_TRACES_SAMPLE_RATE: '${{ secrets.SENTRY_TRACES_SAMPLE_RATE }}' | |
SENTRY_HTTP_TRACING_ENABLED: '${{ secrets.SENTRY_HTTP_TRACING_ENABLED }}' | |
SENTRY_POSTGRES_TRACKING_ENABLED: '${{ secrets.SENTRY_POSTGRES_TRACKING_ENABLED }}' | |
DO_KEY_ID: ${{ secrets.DO_KEY_ID }} | |
DO_SECRET_KEY: ${{ secrets.DO_SECRET_KEY }} | |
NX_NO_CLOUD: true | |
COMPANY_SITE: 'Ever Teams' | |
COMPANY_SITE_LINK: 'https://ever.team' | |
COMPANY_FACEBOOK_LINK: 'https://www.facebook.com/everteamshq' | |
COMPANY_TWITTER_LINK: 'https://twitter.com/ever_teams' | |
COMPANY_LINKEDIN_LINK: 'https://www.linkedin.com/company/ever-co' | |
PROJECT_REPO: 'https://github.com/ever-co/ever-teams.git' | |
DESKTOP_API_SERVER_APP_NAME: 'ever-teams-api-server' | |
DESKTOP_API_SERVER_APP_DESCRIPTION: 'Ever Teams API Server' | |
DESKTOP_API_SERVER_APP_ID: 'com.ever.everteamsapiserver' | |
DESKTOP_API_SERVER_APP_REPO_NAME: 'ever-teams-api-server' | |
DESKTOP_API_SERVER_APP_REPO_OWNER: 'ever-co' | |
DESKTOP_API_SERVER_APP_WELCOME_TITLE: 'Welcome to Ever Teams' | |
DESKTOP_API_SERVER_APP_WELCOME_CONTENT: 'Ever Teams is a productivity tool that helps you to stay focused on your work and manage your team work better.' | |
I18N_FILES_URL: 'https://raw.githubusercontent.com/ever-co/ever-teams/develop/apps/server-api/i18n' | |
PLATFORM_LOGO: 'https://app.ever.team/assets/ever-teams.png' | |
GAUZY_DESKTOP_LOGO_512X512: 'https://raw.githubusercontent.com/ever-co/ever-gauzy/develop/apps/desktop-timer/src/assets/icons/icon_512x512.png' | |
release-mac: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-12] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
with: | |
repository: 'ever-co/ever-gauzy' | |
ref: master | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.11.1' | |
cache: 'yarn' | |
- name: Fix node-gyp and Python | |
run: python3 -m pip install packaging setuptools | |
- name: Install latest version of NPM | |
run: 'sudo npm install -g npm@9' | |
- name: Install latest node-gyp package | |
run: 'sudo npm install --quiet -g node-gyp@9.3.1' | |
- name: Install Yarn dependencies | |
run: 'yarn install --network-timeout 1000000 --frozen-lockfile' | |
- name: Bootstrap Yarn | |
run: 'yarn bootstrap' | |
- name: Bump version | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const script = require('./.scripts/bump-version-electron.js') | |
script.serverapi(true).then(console.log) | |
env: | |
PROJECT_REPO: 'https://github.com/ever-co/ever-teams.git' | |
DESKTOP_API_SERVER_APP_NAME: 'ever-teams-api-server' | |
COMPANY_SITE_LINK: 'https://ever.team' | |
DESKTOP_API_SERVER_APP_DESCRIPTION: 'Ever Teams API Server' | |
DESKTOP_API_SERVER_APP_ID: 'com.ever.everteamsapiserver' | |
- name: Build API Server App | |
run: 'yarn build:gauzy-api-server:mac:release' | |
env: | |
USE_HARD_LINKS: false | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
EP_GH_IGNORE_TIME: true | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
SENTRY_TRACES_SAMPLE_RATE: '${{ secrets.SENTRY_TRACES_SAMPLE_RATE }}' | |
SENTRY_HTTP_TRACING_ENABLED: '${{ secrets.SENTRY_HTTP_TRACING_ENABLED }}' | |
SENTRY_POSTGRES_TRACKING_ENABLED: '${{ secrets.SENTRY_POSTGRES_TRACKING_ENABLED }}' | |
DO_KEY_ID: ${{ secrets.DO_KEY_ID }} | |
DO_SECRET_KEY: ${{ secrets.DO_SECRET_KEY }} | |
NX_NO_CLOUD: true | |
COMPANY_SITE: 'Ever Teams' | |
COMPANY_SITE_LINK: 'https://ever.team' | |
COMPANY_FACEBOOK_LINK: 'https://www.facebook.com/everteamshq' | |
COMPANY_TWITTER_LINK: 'https://twitter.com/ever_teams' | |
COMPANY_LINKEDIN_LINK: 'https://www.linkedin.com/company/ever-co' | |
PROJECT_REPO: 'https://github.com/ever-co/ever-teams.git' | |
DESKTOP_API_SERVER_APP_NAME: 'ever-teams-api-server' | |
DESKTOP_API_SERVER_APP_DESCRIPTION: 'Ever Teams API Server' | |
DESKTOP_API_SERVER_APP_ID: 'com.ever.everteamsapiserver' | |
DESKTOP_API_SERVER_APP_REPO_NAME: 'ever-teams-api-server' | |
DESKTOP_API_SERVER_APP_REPO_OWNER: 'ever-co' | |
DESKTOP_API_SERVER_APP_WELCOME_TITLE: 'Welcome to Ever Teams' | |
DESKTOP_API_SERVER_APP_WELCOME_CONTENT: 'Ever Teams is a productivity tool that helps you to stay focused on your work and manage your team work better.' | |
I18N_FILES_URL: 'https://raw.githubusercontent.com/ever-co/ever-teams/develop/apps/server-api/i18n' | |
PLATFORM_LOGO: 'https://app.ever.team/assets/ever-teams.png' | |
GAUZY_DESKTOP_LOGO_512X512: 'https://raw.githubusercontent.com/ever-co/ever-gauzy/develop/apps/desktop-timer/src/assets/icons/icon_512x512.png' | |
release-windows: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
with: | |
repository: 'ever-co/ever-gauzy' | |
ref: master | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.11.1' | |
cache: 'yarn' | |
- name: Fix node-gyp and Python | |
run: python3 -m pip install packaging setuptools | |
- name: Install latest version of NPM | |
run: 'npm install -g npm@9' | |
- name: Install latest node-gyp package | |
run: 'npm install --quiet -g node-gyp@9.3.1' | |
- name: Install Yarn dependencies | |
run: 'yarn install --network-timeout 1000000 --frozen-lockfile' | |
- name: Bootstrap Yarn | |
run: 'yarn bootstrap' | |
- name: Bump version | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const script = require('./.scripts/bump-version-electron.js') | |
script.serverapi(true).then(console.log) | |
env: | |
PROJECT_REPO: 'https://github.com/ever-co/ever-teams.git' | |
DESKTOP_API_SERVER_APP_NAME: 'ever-teams-api-server' | |
COMPANY_SITE_LINK: 'https://ever.team' | |
DESKTOP_API_SERVER_APP_DESCRIPTION: 'Ever Teams API Server' | |
DESKTOP_API_SERVER_APP_ID: 'com.ever.everteamsapiserver' | |
- name: Print environment variable names | |
run: | | |
echo "Environment Variable Names:" | |
printenv | cut -d= -f1 | |
- name: Build API Server App | |
run: 'yarn build:gauzy-api-server:windows:release:gh' | |
env: | |
USE_HARD_LINKS: false | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
EP_GH_IGNORE_TIME: true | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
SENTRY_TRACES_SAMPLE_RATE: '${{ secrets.SENTRY_TRACES_SAMPLE_RATE }}' | |
SENTRY_HTTP_TRACING_ENABLED: '${{ secrets.SENTRY_HTTP_TRACING_ENABLED }}' | |
SENTRY_POSTGRES_TRACKING_ENABLED: '${{ secrets.SENTRY_POSTGRES_TRACKING_ENABLED }}' | |
DO_KEY_ID: ${{ secrets.DO_KEY_ID }} | |
DO_SECRET_KEY: ${{ secrets.DO_SECRET_KEY }} | |
NX_NO_CLOUD: true | |
COMPANY_SITE: 'Ever Teams' | |
COMPANY_SITE_LINK: 'https://ever.team' | |
COMPANY_FACEBOOK_LINK: 'https://www.facebook.com/everteamshq' | |
COMPANY_TWITTER_LINK: 'https://twitter.com/ever_teams' | |
COMPANY_LINKEDIN_LINK: 'https://www.linkedin.com/company/ever-co' | |
PROJECT_REPO: 'https://github.com/ever-co/ever-teams.git' | |
DESKTOP_API_SERVER_APP_NAME: 'ever-teams-api-server' | |
DESKTOP_API_SERVER_APP_DESCRIPTION: 'Ever Teams API Server' | |
DESKTOP_API_SERVER_APP_ID: 'com.ever.everteamsapiserver' | |
DESKTOP_API_SERVER_APP_REPO_NAME: 'ever-teams-api-server' | |
DESKTOP_API_SERVER_APP_REPO_OWNER: 'ever-co' | |
DESKTOP_API_SERVER_APP_WELCOME_TITLE: 'Welcome to Ever Teams' | |
DESKTOP_API_SERVER_APP_WELCOME_CONTENT: 'Ever Teams is a productivity tool that helps you to stay focused on your work and manage your team work better.' | |
I18N_FILES_URL: 'https://raw.githubusercontent.com/ever-co/ever-teams/develop/apps/server-api/i18n' | |
PLATFORM_LOGO: 'https://app.ever.team/assets/ever-teams.png' | |
GAUZY_DESKTOP_LOGO_512X512: 'https://raw.githubusercontent.com/ever-co/ever-gauzy/develop/apps/desktop-timer/src/assets/icons/icon_512x512.png' | |
# Override unwanted environment variables | |
ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: '' | |
ANT_HOME: '' | |
AZURE_CONFIG_DIR: '' | |
AZURE_DEVOPS_CACHE_DIR: '' | |
AZURE_EXTENSION_DIR: '' | |
AZ_DEVOPS_GLOBAL_CONFIG_DIR: '' | |
CABAL_DIR: '' | |
ChocolateyInstall: '' | |
ChromeWebDriver: '' | |
COBERTURA_HOME: '' | |
# COMPUTERNAME: '' | |
# COMSPEC: '' | |
# CONDA: '' | |
# DEPLOYMENT_BASEPATH: '' | |
SBT_HOME: '' | |
SELENIUM_JAR_PATH: '' | |
STATS_BLT: '' | |
STATS_D: '' | |
STATS_D_D: '' | |
STATS_EXT: '' | |
STATS_EXTP: '' | |
STATS_RDCL: '' | |
STATS_TIS: '' | |
STATS_TRP: '' | |
STATS_UE: '' | |
STATS_V3PS: '' | |
STATS_VMD: '' | |
STATS_VMFE: '' | |
ANDROID_HOME: '' | |
ANDROID_NDK: '' | |
ANDROID_NDK_HOME: '' | |
ANDROID_NDK_LATEST_HOME: '' | |
ANDROID_NDK_ROOT: '' | |
ANDROID_SDK_ROOT: '' | |
# GITHUB_ACTION: '' | |
# GITHUB_ACTIONS: '' | |
# GITHUB_ACTION_REF: '' | |
# GITHUB_ACTION_REPOSITORY: '' | |
# GITHUB_ACTOR: '' | |
# GITHUB_ACTOR_ID: '' | |
# GITHUB_API_URL: '' | |
# GITHUB_BASE_REF: '' | |
# GITHUB_ENV: '' | |
# GITHUB_EVENT_NAME: '' | |
# GITHUB_EVENT_PATH: '' | |
# GITHUB_GRAPHQL_URL: '' | |
# GITHUB_HEAD_REF: '' | |
# GITHUB_JOB: '' | |
# GITHUB_OUTPUT: '' | |
# GITHUB_PATH: '' | |
# GITHUB_REF: '' | |
# GITHUB_REF_NAME: '' | |
# GITHUB_REF_PROTECTED: '' | |
# GITHUB_REF_TYPE: '' | |
# GITHUB_REPOSITORY: '' | |
# GITHUB_REPOSITORY_ID: '' | |
# GITHUB_REPOSITORY_OWNER: '' | |
# GITHUB_REPOSITORY_OWNER_ID: '' | |
# GITHUB_RETENTION_DAYS: '' | |
# GITHUB_RUN_ATTEMPT: '' | |
# GITHUB_RUN_ID: '' | |
# GITHUB_RUN_NUMBER: '' | |
# GITHUB_SERVER_URL: '' | |
# GITHUB_SHA: '' | |
# GITHUB_STATE: '' | |
# GITHUB_STEP_SUMMARY: '' | |
# GITHUB_TRIGGERING_ACTOR: '' | |
# GITHUB_WORKFLOW: '' | |
# GITHUB_WORKFLOW_REF: '' | |
# GITHUB_WORKFLOW_SHA: '' | |
# GITHUB_WORKSPACE: '' | |
GOROOT_1_20_X64: '' | |
GOROOT_1_21_X64: '' | |
GOROOT_1_22_X64: '' | |
GRADLE_HOME: '' | |
# HOMEDRIVE: '' | |
# HOMEPATH: '' | |
IEWebDriver: '' | |
ImageOS: '' | |
ImageVersion: '' | |
JAVA_HOME: '' | |
JAVA_HOME_11_X64: '' | |
JAVA_HOME_17_X64: '' | |
JAVA_HOME_21_X64: '' | |
JAVA_HOME_8_X64: '' | |
# LOCALAPPDATA: '' | |
# LOGONSERVER: '' | |
M2: '' | |
M2_REPO: '' | |
MAVEN_OPTS: '' | |
MonAgentClientLocation: '' | |
# npm_config_prefix: '' | |
# NUMBER_OF_PROCESSORS: '' | |
# OS: '' | |
# PATHEXT: '' | |
# PERFLOG_LOCATION_SETTING: '' | |
PGBIN: '' | |
PGDATA: '' | |
PGPASSWORD: '' | |
PGROOT: '' | |
PGUSER: '' | |
PHPROOT: '' | |
PIPX_BIN_DIR: '' | |
PIPX_HOME: '' | |
POWERSHELL_DISTRIBUTION_CHANNEL: '' | |
POWERSHELL_UPDATECHECK: '' | |
PROCESSOR_ARCHITECTURE: '' | |
PROCESSOR_IDENTIFIER: '' | |
PROCESSOR_LEVEL: '' | |
PROCESSOR_REVISION: '' | |
PSModuleAnalysisCachePath: '' | |
PSModulePath: '' | |
Path: 'C:\hostedtoolcache\windows\node\20.11.1\x64;C:\Program Files\Git\bin;C:\npm\prefix;C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts;C:\hostedtoolcache\windows\Python\3.9.13\x64;C:\Program Files\OpenSSL\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\PowerShell\7\;C:\Program Files\CMake\bin;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\GitHub CLI\;c:\tools\php;C:\Program Files (x86)\sbt\bin;C:\Program Files\Amazon\AWSCLIV2\;C:\Users\runneradmin\.dotnet\tools;C:\Users\runneradmin\.cargo\bin;C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps' | |
DOTNET_MULTILEVEL_LOOKUP: '' | |
DOTNET_NOLOGO: '' | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: '' | |
DriverData: '' | |
EdgeWebDriver: '' | |
GCM_INTERACTIVE: '' | |
GeckoWebDriver: '' | |
GHCUP_INSTALL_BASE_PREFIX: '' | |
GHCUP_MSYS2: '' | |
# RTOOLS44_HOME: '' | |
RUNNER_ARCH: '' | |
RUNNER_ENVIRONMENT: '' | |
RUNNER_NAME: '' | |
RUNNER_OS: '' | |
RUNNER_PERFLOG: '' | |
RUNNER_TEMP: '' | |
RUNNER_TOOL_CACHE: '' | |
RUNNER_TRACKING_ID: '' | |
RUNNER_WORKSPACE: '' | |
# USERDOMAIN: '' | |
# USERDOMAIN_ROAMINGPROFILE: '' | |
# USERNAME: '' | |
# USERPROFILE: '' | |
# VCPKG_INSTALLATION_ROOT: '' | |
# WIX: '' | |
# TERM: '' | |
# HOME: '' | |
# WINDIR: '' | |
# ProgramData: '' | |
# PROGRAMFILES: '' | |
# ProgramW6432: '' | |
# ALLUSERSPROFILE: '' | |
# APPDATA: '' | |
# COMMONPROGRAMFILES: '' | |
# CommonProgramFiles(x86) | |
# CommonProgramW6432 |