diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f0bb869..0f722a0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 diff --git a/.github/workflows/main_build.yaml b/.github/workflows/main_build.yaml index 43c4be4..e06a209 100644 --- a/.github/workflows/main_build.yaml +++ b/.github/workflows/main_build.yaml @@ -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 diff --git a/.github/workflows/manual_patch_release.yaml b/.github/workflows/manual_patch_release.yaml new file mode 100644 index 0000000..113b153 --- /dev/null +++ b/.github/workflows/manual_patch_release.yaml @@ -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 diff --git a/.github/workflows/patch_build_and_release.yaml b/.github/workflows/patch_build_and_release.yaml new file mode 100644 index 0000000..36bd32f --- /dev/null +++ b/.github/workflows/patch_build_and_release.yaml @@ -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 }}