Skip to content

Configure isSingleProduct to disable primary nav #1

Configure isSingleProduct to disable primary nav

Configure isSingleProduct to disable primary nav #1

name: Build and Release Rancher Dashboard - Rancher Desktop Embed
on:
push:
tags:
- 'desktop-v*'
env:
OUTPUT_DIR: dist
RELEASE_DIR: release
ARTIFACT_NAME: rancher-dashboard-desktop-embed
API: "http://127.0.0.1:6120"
RESOURCE_BASE: "http://127.0.0.1:6120"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v2
with:
node-version: '20.x'
- name: Install & Build
run:
RANCHER_ENV=desktop ./.github/workflows/scripts/build-dashboard.sh
- name: Upload Build
uses: actions/upload-artifact@v4
with:
path: ${{ env.RELEASE_DIR}}/${{ env.ARTIFACT_NAME }}*
name: ${{ env.ARTIFACT_NAME }}
if-no-files-found: error
release:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
persist-credentials: false
- name: Download build
uses: actions/download-artifact@v4
with:
name: ${{ env.ARTIFACT_NAME }}
path: build
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Upload Release Assets
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
run: |
gh release upload ${{ env.RELEASE_VERSION }} build/${{ env.ARTIFACT_NAME }}.tar.gz build/${{ env.ARTIFACT_NAME }}.tar.gz.sha512sum