diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6dc6db3787..18b4a20412a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,12 +4,12 @@ on: branches: - 'master' paths-ignore: - - 'docs/**' + - 'docs/**' pull_request: branches: - 'master' paths-ignore: - - 'docs/**' + - 'docs/**' jobs: golangci: @@ -50,7 +50,7 @@ jobs: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ runner.os }}-go- + ${{ runner.os }}-go- - run: GOPROXY=direct GOSUMDB=off GO111MODULE=on go test -tags draft ./... build-backend: name: Backend build @@ -70,7 +70,7 @@ jobs: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ runner.os }}-go- + ${{ runner.os }}-go- - run: | go clean -modcache rm go.sum @@ -226,7 +226,7 @@ jobs: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ runner.os }}-go- + ${{ runner.os }}-go- - name: goreleaser WITHOUT tag uses: goreleaser/goreleaser-action@v1 if: success() && startsWith(github.ref, 'refs/tags/') == false diff --git a/.github/workflows/documentation-build.yml b/.github/workflows/documentation-build.yml new file mode 100644 index 00000000000..e80a7017653 --- /dev/null +++ b/.github/workflows/documentation-build.yml @@ -0,0 +1,40 @@ +name: Meshery Docs +on: + push: + paths: + - 'docs/**' + branches: + - 'master' + tags: + - 'v*' + +jobs: + build: + name: build + runs-on: macos-latest + strategy: + matrix: + ruby: '2.7.1' + steps: + - name: Check out code + uses: actions/checkout@v2 + - name: Unshallow + run: git fetch --prune --unshallow + - name: Set up Ruby + uses: actions/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - name: Setup Cache + uses: actions/cache@v2 + with: + path: vendor/bundle + key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gems- + - name: Bundle install + run: | + bundle config path vendor/bundle + bundle install --jobs 4 --retry 3 + - name: Build jekyll bundle + run: | + bundle exec jekyll build --drafts \ No newline at end of file diff --git a/docs/README.md b/docs/README.md index 402ba0f81bb..b52c5b2915c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -40,7 +40,7 @@ Before contributing, please review the [Documentation Contribution Flow](https:/ ```bash $ make site ``` - *Note: From the Makefile, this command is actually running `$ bundle exec jekyll serve --drafts --livereload`. There are two Jekyll configuration, `jekyll serve` for developing locally and `jekyll build` when you need to generate the site artefacts for production.* + *Note: From the Makefile, this command is actually running `$ bundle exec jekyll serve --drafts --livereload`. There are two Jekyll configuration, `jekyll serve` for developing locally and `jekyll build` when you need to generate the site artifacts for production.* ### 4. Create a Pull Request diff --git "a/docs/assets/img/adapters/consul/consul-imagehub-success.png\357\200\272Zone.Identifier" "b/docs/assets/img/adapters/consul/consul-imagehub-success.png\357\200\272Zone.Identifier" deleted file mode 100644 index 2d45b2b2fdb..00000000000 --- "a/docs/assets/img/adapters/consul/consul-imagehub-success.png\357\200\272Zone.Identifier" +++ /dev/null @@ -1,3 +0,0 @@ -[ZoneTransfer] -ZoneId=3 -HostUrl=about:internet diff --git "a/docs/assets/img/adapters/consul/consul-sample-app.png\357\200\272Zone.Identifier" "b/docs/assets/img/adapters/consul/consul-sample-app.png\357\200\272Zone.Identifier" deleted file mode 100644 index 95a3463349d..00000000000 --- "a/docs/assets/img/adapters/consul/consul-sample-app.png\357\200\272Zone.Identifier" +++ /dev/null @@ -1,4 +0,0 @@ -[ZoneTransfer] -ZoneId=3 -HostUrl=about:internet -LastWriterPackageFamilyName=Microsoft.Windows.Photos_8wekyb3d8bbwe