From 3a3ce3d5282df351fd5b5e2af167c6ef5a6803aa Mon Sep 17 00:00:00 2001 From: Sumitsh28 Date: Fri, 4 Oct 2024 22:18:34 +0530 Subject: [PATCH] feat(Workflow): Removed disabled workflows Signed-off-by: Sumitsh28 --- .github/workflows/build-and-preview-site.yml | 34 ------ .github/workflows/multi-platform.yml | 120 ------------------- .github/workflows/storybook-deploy.yml | 40 ------- 3 files changed, 194 deletions(-) delete mode 100644 .github/workflows/build-and-preview-site.yml delete mode 100644 .github/workflows/multi-platform.yml delete mode 100644 .github/workflows/storybook-deploy.yml diff --git a/.github/workflows/build-and-preview-site.yml b/.github/workflows/build-and-preview-site.yml deleted file mode 100644 index 9318e2df..00000000 --- a/.github/workflows/build-and-preview-site.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Build and Preview Site -on: - pull_request: - branches: [ master ] - types: [opened, synchronize, reopened] - paths: - - '!**' - - 'site/**' - -jobs: - site-preview: - runs-on: ubuntu-latest - steps: - - name: Checkout 🛎️ - uses: actions/checkout@master - with: - persist-credentials: false - fetch-depth: 1 - - - name: Install and Build 🔧 - run: | - cd site - npm install - npm run build - - name: Zip Site - run: bash site/script.sh - - name: Upload files - uses: actions/upload-artifact@master - with: - name: public-dir - path: ./public-dir.zip - retention-days: 1 - - name: Triger Inner workflow - run: echo "trigering inner workflow" diff --git a/.github/workflows/multi-platform.yml b/.github/workflows/multi-platform.yml deleted file mode 100644 index f9861dbc..00000000 --- a/.github/workflows/multi-platform.yml +++ /dev/null @@ -1,120 +0,0 @@ -name: Multi-Platform Build and Release -on: - release: - types: [published] - push: - tags: - - 'v*' - branches: - - 'master' - paths-ignore: - - 'docs/**' - # - '.github/**' - workflow_dispatch: - inputs: - release-ver: - description: 'Stable Release Version' - required: true - default: 'v' - stripped-release-ver: - description: 'Stripped Stable Release Version' - required: true - default: '' - release-channel: - description: 'Release Channel' - required: true - default: 'edge' - -env: - GIT_VERSION: ${{github.event.inputs.release-ver}} - GIT_STRIPPED_VERSION: ${{github.event.inputs.stripped-release-ver}} - RELEASE_CHANNEL: ${{github.event.inputs.release-channel}} - GIT_TAG: ${{ github.event.release.tag_name }} - -jobs: - print-inputs: - runs-on: ubuntu-latest - steps: - - - run: | - echo "Dispatched GIT_VERSION: ${{github.event.inputs.release-ver}}" - echo " Dispatched GIT_STRIPPED_VERSION: ${{github.event.inputs.stripped-release-ver}}" - echo "Env RELEASE_CHANNEL: ${{env.RELEASE_CHANNEL}}" - echo "Env GIT_VERSION: ${{env.GIT_VERSION}}" - echo "Env GIT_STRIPPED_VERSION: ${{env.GIT_STRIPPED_VERSION}}" - echo "Env GIT_TAG: ${{ github.event.release.tag_name }}" - - docker-build: - runs-on: ubuntu-latest - steps: - - - name: Checkout repo - uses: actions/checkout@v3 - - - name: Identify Release Values - if: "${{ github.event.inputs.release-ver}} != 'v' }}" - run: | - # GIT_REF=`git symbolic-ref HEAD` - if [[ $GIT_TAG = refs/tags* ]] - then - echo RELEASE_CHANNEL=stable >> $GITHUB_ENV - else - echo RELEASE_CHANNEL=edge >> $GITHUB_ENV - fi - echo "Release channel determined to be $RELEASE_CHANNEL" - LATEST_VERSION=$(git ls-remote --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g') >> $GITHUB_ENV - GIT_VERSION=$(git ls-remote --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g') >> $GITHUB_ENV - # GIT_VERSION=$(git describe --tags `git rev-list --tags --max-count=1` --always) - GIT_STRIPPED_VERSION=$(git ls-remote --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g' | cut -c2-) - echo "GIT_LATEST=$LATEST_VERSION" >> $GITHUB_ENV - echo "GIT_VERSION=$GIT_VERSION" >> $GITHUB_ENV - echo "GIT_STRIPPED_VERSION=$GIT_STRIPPED_VERSION" >> $GITHUB_ENV - shell: bash - - - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Docker Meta - id: meta - uses: docker/metadata-action@v3 - with: - images: ${{ secrets.IMAGE_NAME }} - flavor: | - latest=false - tags: | - type=raw,value=${{env.RELEASE_CHANNEL}}-{{sha}} - type=semver,pattern={{version}},value=${{env.GIT_STRIPPED_VERSION}} - type=raw,pattern={{version}},value=${{env.RELEASE_CHANNEL}}-${{env.GIT_VERSION}} - type=raw,value=${{env.RELEASE_CHANNEL}}-{{tag}},enable=${{ startsWith(github.ref, 'refs/tags/v') }} - type=raw,value=${{env.RELEASE_CHANNEL}}-latest - type=semver,pattern={{version}},value=${{env.RELEASE_CHANNEL}}-${{env.GIT_VERSION}},enable=${{ startsWith(github.ref, 'refs/tags/v') }} - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and Push - uses: docker/build-push-action@v2 - with: - context: "{{defaultContext}}" - push: true - build-args: | - GIT_STRIPPED_VERSION=${{env.GIT_STRIPPED_VERSION}} - GIT_VERSION=${{env.GIT_VERSION}} - RELEASE_CHANNEL=${{env.RELEASE_CHANNEL}} - tags: ${{ steps.meta.outputs.tags }} - platforms: linux/amd64,linux/arm64 - - - name: Docker Hub Description - uses: peter-evans/dockerhub-description@v3 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - repository: meshery/meshery-docker-extension - readme-filepath: /install/docker-extension/README.md diff --git a/.github/workflows/storybook-deploy.yml b/.github/workflows/storybook-deploy.yml deleted file mode 100644 index 0e3c5c52..00000000 --- a/.github/workflows/storybook-deploy.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Deploy Storybook - -on: - push: - branches: - - "*" - pull_request: - branches: - - "*" - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16, 18, 20] - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Install dependencies - run: npm install - - - name: Build Storybook - run: | - cd apps/design-system - npm install - npm build-storybook - - - name: Deploy Storybook - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./storybook-static