forked from rancher/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
104 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
name: check-plugins-build | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
env: | ||
TEST_PERSIST_BUILD: true | ||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16.20.2' | ||
- name: Validate Plugin build system | ||
run: ./shell/scripts/test-plugins-build.sh | ||
shell: bash | ||
# name: check-plugins-build | ||
# on: | ||
# pull_request: | ||
# branches: | ||
# - master | ||
# env: | ||
# TEST_PERSIST_BUILD: true | ||
# jobs: | ||
# validate: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# - name: Setup Node.js | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: '16.20.2' | ||
# - name: Validate Plugin build system | ||
# run: ./shell/scripts/test-plugins-build.sh | ||
# shell: bash | ||
|
||
- name: Upload files | ||
uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: test | ||
path: | | ||
/tmp/tmp.**/test-app | ||
!/tmp/tmp.**/test-app/node_modules/ | ||
!/tmp/tmp.**/test-app/pkg/test-pkg/node_modules/ | ||
retention-days: 2 | ||
# - name: Upload files | ||
# uses: actions/upload-artifact@v3 | ||
# if: failure() | ||
# with: | ||
# name: test | ||
# path: | | ||
# /tmp/tmp.**/test-app | ||
# !/tmp/tmp.**/test-app/node_modules/ | ||
# !/tmp/tmp.**/test-app/pkg/test-pkg/node_modules/ | ||
# retention-days: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
name: Publish Docusaurus | ||
# name: Publish Docusaurus | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: yarn | ||
# on: | ||
# push: | ||
# branches: | ||
# - master | ||
# pull_request: | ||
# branches: | ||
# - master | ||
# jobs: | ||
# build: | ||
# name: Build | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 16.x | ||
# cache: yarn | ||
|
||
- name: Install dependencies | ||
run: cd docusaurus/ && yarn install:ci | ||
- name: Build website | ||
run: cd docusaurus/ && yarn build | ||
- name: Add CNAME | ||
run: | | ||
echo "extensions.rancher.io" > ./docusaurus/build/CNAME | ||
# - name: Install dependencies | ||
# run: cd docusaurus/ && yarn install:ci | ||
# - name: Build website | ||
# run: cd docusaurus/ && yarn build | ||
# - name: Add CNAME | ||
# run: | | ||
# echo "extensions.rancher.io" > ./docusaurus/build/CNAME | ||
|
||
- name: Upload artifact | ||
if: ${{ github.event_name == 'push' && github.repository_owner == 'rancher' }} | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./docusaurus/build | ||
retention-days: 10 | ||
compression-level: 9 | ||
# - name: Upload artifact | ||
# if: ${{ github.event_name == 'push' && github.repository_owner == 'rancher' }} | ||
# uses: actions/upload-pages-artifact@v3 | ||
# with: | ||
# path: ./docusaurus/build | ||
# retention-days: 10 | ||
# compression-level: 9 | ||
|
||
# Seperate the deploy job to isolate write permissions | ||
deploy: | ||
name: Publish | ||
if: ${{ github.event_name == 'push' && github.repository_owner == 'rancher' }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
# # Seperate the deploy job to isolate write permissions | ||
# deploy: | ||
# name: Publish | ||
# if: ${{ github.event_name == 'push' && github.repository_owner == 'rancher' }} | ||
# runs-on: ubuntu-latest | ||
# needs: build | ||
|
||
# This is required to avoid https://github.com/actions/deploy-pages/issues/271 | ||
environment: | ||
name: github-pages | ||
# # This is required to avoid https://github.com/actions/deploy-pages/issues/271 | ||
# environment: | ||
# name: github-pages | ||
|
||
permissions: | ||
pages: write | ||
id-token: write | ||
# permissions: | ||
# pages: write | ||
# id-token: write | ||
|
||
steps: | ||
- name: Deploy to GitHub Pages | ||
uses: actions/deploy-pages@v4 | ||
# steps: | ||
# - name: Deploy to GitHub Pages | ||
# uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
name: storybook | ||
env: | ||
STORYBOOK_TOKEN: ${{ secrets.STORYBOOK_TOKEN }} | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
storybook: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16.20.2' | ||
- name: Install packages | ||
run: yarn install | ||
- name: Build Storybook | ||
run: | | ||
yarn build-storybook | ||
- name: Publish Storybook | ||
if: ${{ github.event_name == 'push' && github.repository_owner == 'rancher'}} | ||
run: .github/workflows/scripts/publish-storybook | ||
# name: storybook | ||
# env: | ||
# STORYBOOK_TOKEN: ${{ secrets.STORYBOOK_TOKEN }} | ||
# on: | ||
# push: | ||
# branches: | ||
# - master | ||
# pull_request: | ||
# branches: | ||
# - master | ||
# jobs: | ||
# storybook: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Use Node.js | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: '16.20.2' | ||
# - name: Install packages | ||
# run: yarn install | ||
# - name: Build Storybook | ||
# run: | | ||
# yarn build-storybook | ||
# - name: Publish Storybook | ||
# if: ${{ github.event_name == 'push' && github.repository_owner == 'rancher'}} | ||
# run: .github/workflows/scripts/publish-storybook |