Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@

name: Build and Deploy Site

on:
push:
branches: [ master ]
paths:
- 'site/**'
branches: [master]
workflow_dispatch:

workflow_call:

jobs:
build-and-deploy:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Install and Build 🔧
uses: actions/checkout@master
with:
fetch-depth: 1

- name: Install and Build 🔧
run: |
make setup
make build

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.4.3
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
branch: site # The branch the action should deploy to.
folder: site/public # The folder the action should deploy.
clean: true
folder: public # The folder the action should deploy.
clean: true
33 changes: 15 additions & 18 deletions .github/workflows/build-and-preview-site.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
name: Build and Preview Site
on:
pull_request:
branches: [ master ]
branches: [master]
types: [opened, synchronize, reopened]
paths:
- '!**'
- 'docs/**'

jobs:
trigger-site-preview:
runs-on: ubuntu-24.04
site-preview:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@master
with:
persist-credentials: false
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.6 # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install and Build 🔧
fetch-depth: 1

- name: Install and Build 🔧
run: |
cd docs
make setup
make build

- name: Zip Site
run: bash docs/script.sh
run: bash ./script.sh

- name: Upload files
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@master
with:
name: site-dir
path: ./site-dir.zip
name: public-dir
path: ./public-dir.zip
retention-days: 1
- name: Trigger Inner workflow
run: echo "triggering workflow"
run: echo "triggering inner workflow"
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
notfiy-build:
name: Notify providers for Meshery Extensions channel build
if: github.repository == 'meshery/meshery'
if: github.repository == 'meshery-extensions/shape-builder'
runs-on: ubuntu-24.04
steps:
- name: trigger plugins for edge
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-ui-and-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions: read-all
jobs:
ui-build:
name: UI build
if: github.repository == 'meshery/meshery'
if: github.repository == 'meshery-extensions/shape-builder'
runs-on: ubuntu-24.04
steps:
- name: Check out code
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
needs: [ui-build]
name: UI end-to-end tests
environment: staging-playground
if: github.repository == 'meshery/meshery'
if: github.repository == 'meshery-extensions/shape-builder'
runs-on: ubuntu-24.04
timeout-minutes: 45
steps:
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
retention-days: 14
docker-build-test:
name: Docker build
if: github.repository == 'meshery/meshery'
if: github.repository == 'meshery-extensions/shape-builder'
runs-on: ubuntu-24.04
steps:
- name: Check out code
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
repository: ${{ secrets.IMAGE_NAME }}
# validate the swagger docs
swaggerci:
if: github.repository == 'meshery/meshery'
if: github.repository == 'meshery-extensions/shape-builder'
name: swagger-docs
runs-on: ubuntu-24.04
steps:
Expand All @@ -208,7 +208,7 @@ jobs:
# validate graphQL schema
garphql_validate:
name: Validate GraphQL schema
if: github.repository == 'meshery/meshery'
if: github.repository == 'meshery-extensions/shape-builder'
runs-on: ubuntu-24.04
steps:
- name: Check out code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/comment-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:

jobs:
e2e-test-reporter:
if: github.repository == 'meshery/meshery'
if: github.repository == 'meshery-extensions/shape-builder'
runs-on: ubuntu-24.04
steps:
- name: Download e2e test report artifact
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
triage:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4 # Uploads repository content to the runner
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

4 changes: 2 additions & 2 deletions .github/workflows/multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ env:

jobs:
print-inputs:
if: github.repository == 'meshery/meshery'
if: github.repository == 'meshery-extensions/shape-builder'
runs-on: ubuntu-24.04
steps:

Expand All @@ -51,7 +51,7 @@ jobs:
echo "Env GITHUB_REF:" ${GITHUB_REF}

docker-build:
if: github.repository == 'meshery/meshery'
if: github.repository == 'meshery-extensions/shape-builder'
runs-on: ubuntu-24.04
steps:
-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/notify-providers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
notify-remote-provider-build:
name: Notify Remote Providers of Release
if: github.repository == 'meshery/meshery'
if: github.repository == 'meshery-extensions/shape-builder'
runs-on: ubuntu-24.04
steps:
- name: trigger plugins for edge
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
deploy-preview:
if: github.repository == 'meshery/meshery'
if: github.repository == 'meshery-extensions/shape-builder'
runs-on: ubuntu-24.04
steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- '.github/**'
jobs:
update_release_draft:
if: github.repository == 'meshery/meshery'
if: github.repository == 'meshery-extensions/shape-builder'
runs-on: ubuntu-24.04
steps:
- name: Drafting release
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ site/yarn-error.log*

.DS_Store
.github/.DS_Store
node_modules
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shapes.meshery.io
6 changes: 6 additions & 0 deletions script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#! /usr/bin/env bash

if [ -f public-dir.zip ]; then
rm -rf public-dir.zip
fi
zip -r public-dir.zip ./public
4 changes: 2 additions & 2 deletions site/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*/
module.exports = {
siteMetadata: {
title: `site`,
siteUrl: `https://www.yourdomain.tld`
title: `Meshery Shape Builder`,
siteUrl: `https://shapes.meshery.io`
},
plugins: ["gatsby-plugin-styled-components"]
};
Loading
Loading