diff --git a/.github/workflows/release-selfhost.yml b/.github/workflows/release-selfhost.yml index 3e2e5ca6b7..31af7fe571 100644 --- a/.github/workflows/release-selfhost.yml +++ b/.github/workflows/release-selfhost.yml @@ -9,11 +9,12 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 with: - fetch_depth: 0 + node-version: 14.x - name: Tag and release Docker images (Self Host) - run: | + run: | docker login -u $DOCKER_USER -p $DOCKER_PASSWORD # Get latest release version @@ -28,7 +29,7 @@ jobs: # Tag apps and worker images docker tag budibase/apps:$release_tag budibase/apps:$SELFHOST_TAG docker tag budibase/worker:$release_tag budibase/worker:$SELFHOST_TAG - + # Push images docker push budibase/apps:$SELFHOST_TAG docker push budibase/worker:$SELFHOST_TAG @@ -36,13 +37,20 @@ jobs: DOCKER_USER: ${{ secrets.DOCKER_USERNAME }} DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }} SELFHOST_TAG: latest - - - name: Setup Helm + + - name: Setup Helm uses: azure/setup-helm@v1 id: helm-install + - name: Build CLI executables + run: | + pushd packages/cli + yarn + yarn build + popd + # - name: Build and release helm chart - # run: | + # run: | # git config user.name "Budibase Helm Bot" # git config user.email "<>" # mv budibase-${{ env.RELEASE_VERSION }}.tgz docs @@ -66,4 +74,8 @@ jobs: with: name: v${{ env.RELEASE_VERSION }} tag_name: v${{ env.RELEASE_VERSION }} - generate_release_notes: true \ No newline at end of file + generate_release_notes: true + files: | + packages/cli/build/cli-win.exe + packages/cli/build/cli-linux + packages/cli/build/cli-macos \ No newline at end of file diff --git a/.gitignore b/.gitignore index 086813c97e..6ba2f61ed7 100644 --- a/.gitignore +++ b/.gitignore @@ -93,3 +93,5 @@ hosting/.generated-envoy.dev.yaml # Sublime text *.sublime-project *.sublime-workspace + +bin/ diff --git a/packages/cli/package.json b/packages/cli/package.json index caf47d7083..8cccba1767 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -13,7 +13,9 @@ }, "pkg": { "targets": [ - "node14" + "node14-linux", + "node14-win", + "node14-macos" ], "outputPath": "build" },