Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update CLI version to latest #18

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
shell: bash
run: |
# Symlink the Uesio CLI for subsequent use
wget -q https://docs.ues.io/site/files/uesio/docs/v1.1.2/clilinux
wget -q https://docs.ues.io/site/files/uesio/docs/v1.1.3/clilinux
chmod +x clilinux
sudo ln -s $PWD/clilinux /usr/local/bin/uesio
- name: npm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
shell: bash
run: |
# Symlink the Uesio CLI for subsequent use
wget -q https://docs.ues.io/site/files/uesio/docs/v1.1.2/clilinux
wget -q https://docs.ues.io/site/files/uesio/docs/v1.1.3/clilinux
chmod +x clilinux
sudo ln -s $PWD/clilinux /usr/local/bin/uesio
- name: npm install
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/manual_patch_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Manual Patch release

on:
workflow_dispatch:
inputs:
app:
description: "App"
required: true
type: choice
options:
- salesforce
- clickup
- smartsheet

jobs:
deploy:
name: Build and release ${{ inputs.app }}
uses: ./.github/workflows/patch_build_and_release.yaml
with:
app: ${{ inputs.app }}
secrets: inherit
52 changes: 52 additions & 0 deletions .github/workflows/patch_build_and_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Patch build and release

on:
workflow_call:
inputs:
app:
type: string
required: true
secrets:
UESIO_CLI_USERNAME:
required: true
UESIO_CLI_PASSWORD:
required: true

jobs:
build:
runs-on: ubuntu-latest
environment: prod
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.15.0
cache: "npm"
- name: Setup Uesio CLI Symlink
shell: bash
run: |
# Symlink the Uesio CLI for subsequent use
wget -q https://docs.ues.io/site/files/uesio/docs/v1.1.3/clilinux
chmod +x clilinux
sudo ln -s $PWD/clilinux /usr/local/bin/uesio
- name: NPM install top level
shell: bash
run: npm ci
- name: Build, deploy, and package app
shell: bash
env:
UESIO_CLI_USERNAME: ${{ secrets.UESIO_CLI_USERNAME }}
UESIO_CLI_PASSWORD: ${{ secrets.UESIO_CLI_PASSWORD }}
UESIO_CLI_HOST: ${{ vars.UESIO_CLI_HOST }}
UESIO_CLI_LOGIN_METHOD: uesio/core.platform
run: |
[ ! -d "/apps/${{ inputs.app }}" ] && echo "Invalid app name" && exit 1
echo "Building ${{ inputs.app }}"
cd "/apps/${{ inputs.app }}"
npm ci
npm run lint
cd ../..
bash bundle.sh /apps/${{ inputs.app }}