-
Notifications
You must be signed in to change notification settings - Fork 68
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
5 changed files
with
52 additions
and
28 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
name: Build environment | ||
description: Create build environment | ||
|
||
inputs: | ||
gh_token: | ||
description: GitHub token | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Restore cached Plugins | ||
id: cache-plugins-restore | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: plugins_metadata.json | ||
key: plugins_metadata | ||
- name: fetch metadata | ||
if: steps.cache-plugins-restore.outputs.cache-hit != 'true' | ||
id: fetch_metadata | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.gh_token }} | ||
run: aiida-registry fetch | ||
shell: bash | ||
- name: Check plugins installation | ||
if: steps.cache-plugins-restore.outputs.cache-hit != 'true' | ||
# This step will attach plugin installation inforamtion to the metadata, e.g. if the plugin can be installed or not | ||
run: aiida-registry test-install | ||
shell: bash | ||
- name: Cache plugins metadata | ||
if: steps.cache-plugins-restore.outputs.cache-hit != 'true' | ||
id: cache-plugins-save | ||
uses: actions/cache/save@v3 | ||
with: | ||
path: plugins_metadata.json | ||
key: ${{ steps.cache-plugins-restore.outputs.cache-primary-key }} | ||
|
||
- name: Move JSON file to the React project | ||
run: | | ||
cp plugins_metadata.json aiida-registry-app/src/ | ||
cp plugins_metadata.json aiida-registry-app/dist/ | ||
shell: bash |
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
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