Skip to content

Commit

Permalink
comment workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
aalves08 committed Jul 25, 2024
1 parent d05c7b9 commit 25d643d
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 104 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/check-plugins.yaml
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
94 changes: 47 additions & 47 deletions .github/workflows/docusaurus.yaml
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
54 changes: 27 additions & 27 deletions .github/workflows/storybook.yaml
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

0 comments on commit 25d643d

Please sign in to comment.