-
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
44 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,36 @@ | ||
--- | ||
name: Build environment | ||
description: Create build environment | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Checkout Repo ⚡️ | ||
uses: actions/checkout@v3 | ||
- 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: ${{ secrets.GITHUB_TOKEN }} | ||
run: aiida-registry fetch | ||
#- name: Check plugins installation | ||
# # 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 | ||
- 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/ |
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