-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #615 from nfdi4plants/search_rework
Search rework
- Loading branch information
Showing
110 changed files
with
12,411 additions
and
1,866 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
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Publish NPM Package | ||
|
||
on: | ||
push: | ||
branches: ['nightly'] | ||
workflow_dispatch: # Allows manual runs from the Actions tab | ||
|
||
jobs: | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Ensure all tags are fetched | ||
|
||
- name: Extract Latest Tag as Version | ||
id: get_version | ||
run: echo "PACKAGE_VERSION=$(git describe --tags --always --dirty)" >> $GITHUB_ENV | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
registry-url: 'https://registry.npmjs.org/' | ||
|
||
# Set up .NET | ||
- name: Set up .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.x.x | ||
|
||
# Restore .NET tools | ||
- name: Restore .NET dependencies | ||
run: dotnet tool restore | ||
|
||
- name: Install NPM Dependencies | ||
run: npm install | ||
working-directory: src/Components | ||
|
||
- name: Set Package Version | ||
run: npm version --no-git-tag-version $PACKAGE_VERSION | ||
working-directory: src/Componentes | ||
|
||
- name: Build Package | ||
run: npm run build | ||
working-directory: src/Componentes | ||
# - name: Publish to NPM | ||
# run: npm publish --access public | ||
# working-directory: src/Components | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Publish Nightly NuGet Package | ||
|
||
on: | ||
push: | ||
branches: ['nightly'] # Only runs on pushes to the 'nightly' branch | ||
workflow_dispatch: # Allows manual runs from the Actions tab | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install .NET SDK | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '8.x.x' | ||
|
||
- name: Extract Latest Tag as Version | ||
id: get_version | ||
run: echo "PACKAGE_VERSION=$(git describe --tags --always --dirty)" >> $GITHUB_ENV | ||
|
||
- name: Restore Dependencies | ||
run: dotnet restore src/Components/src/Components.fsproj | ||
|
||
- name: Install NPM Dependencies | ||
run: npm install | ||
working-directory: src/Components | ||
|
||
- name: Run Prebuild Script | ||
run: npm run prebuild:net | ||
working-directory: src/Components | ||
|
||
- name: Build Project | ||
run: dotnet build src/Components/src/Components.fsproj --configuration Release /p:PackageVersion=${PACKAGE_VERSION} | ||
|
||
- name: Pack NuGet Package | ||
run: dotnet pack src/Components/src/Components.fsproj --configuration Release --output nupkgs /p:PackageVersion=${PACKAGE_VERSION} | ||
|
||
# - name: Publish to NuGet | ||
# run: dotnet nuget push nupkgs/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate |
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Workflow name | ||
name: Build and Publish Storybook to GitHub Pages | ||
|
||
on: | ||
# Event for the workflow to run on | ||
push: | ||
branches: | ||
- 'nightly' # Replace with the branch you want to deploy from | ||
workflow_dispatch: # Allows manual runs from the Actions tab | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# List of jobs | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
# Job steps | ||
steps: | ||
|
||
# Manual Checkout | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# Set up Node | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
# Set up .NET | ||
- name: Set up .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.x.x | ||
|
||
# Restore .NET tools | ||
- name: Restore .NET dependencies | ||
run: dotnet tool restore | ||
|
||
# Install dependencies | ||
- name: Install npm dependencies | ||
run: npm install | ||
working-directory: src/Components | ||
|
||
# Build the project | ||
- name: Build | ||
run: npm run build:storybook # this does not work currently, as it does not move the transpiled files from Shared to storybook-static | ||
|
||
# #👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow | ||
# - uses: bitovi/[email protected] | ||
# with: | ||
# install_command: echo "install skipped" # default: npm ci | ||
# build_command: echo "build skipped" # default: npm run build-storybook | ||
# path: src/Components/storybook-static # default: dist/storybook | ||
# checkout: false # default: true |
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
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
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 |
---|---|---|
|
@@ -19,5 +19,8 @@ | |
"**/bin": true, | ||
"**/obj": true, | ||
"**/deploy": true, | ||
}, | ||
"[fsharp]": { | ||
"editor.inlayHints.enabled": "off" | ||
} | ||
} |
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
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
Oops, something went wrong.