From 88ea6360a1d1cb3277071d491ef83f597c5ab9a3 Mon Sep 17 00:00:00 2001 From: Muhammed Kalkan Date: Sat, 28 May 2022 15:03:48 +0300 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..bf94c90 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,33 @@ +name: Build Lens + +on: + workflow_dispatch: + push: + branches: [ main ] + +jobs: + build: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v3.0.2 + - name: Export version to variable + run: | + export LENS_VERSION=$(cat version) + echo "LENS_VERSION=$LENS_VERSION" >> $GITHUB_ENV + - uses: actions/setup-node@v3 + with: + node-version: 14.19.3 + - name: Build Lens + run: | + git clone https://github.com/lensapp/lens.git + cd lens + git checkout v${{ env.LENS_VERSION }} + make build + mv dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.zip dist/OpenLens-${{ env.LENS_VERSION }}.zip + ls -la dist + - name: Release + uses: softprops/action-gh-release@v0.1.14 + with: + tag_name: v${{ env.LENS_VERSION }} + files: lens/dist/OpenLens-${{ env.LENS_VERSION }}.zip