-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hypehn Rename .nojeckyll to .nojekyll ctx fix vocab relink vocab relink schema fx schema fx schema fx schema schema grid and license production action nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl nojekyl Update README.md testing testing 1 testing 1 testing 1 testing 1 testing 1 testing 1 testing 1 testing 1 testing 1 cli browser testcase and clifix version 1.0 graph functions graph functions Update test1.json Automated Content Update graph fn actions Automated update of JSONLD files, DO NOT EDIT. actions Automated update of JSONLD files, DO NOT EDIT. Update graph.jsonld Automated update of JSONLD files, DO NOT EDIT. actions Automated update of JSONLD files, DO NOT EDIT. actions actions actions actions Automated update of JSONLD files, DO NOT EDIT. actions actions Automated update of JSONLD files, DO NOT EDIT. create graphs for descriptors create graphs for descriptors testpush Automated update of JSONLD files, DO NOT EDIT. graph Automated update of JSONLD files, DO NOT EDIT. graphgen Automated update of JSONLD files, DO NOT EDIT. graph files Automated update of JSONLD files, DO NOT EDIT. schema schema multictx multictx schema multictx multictx Automated update of JSONLD files, DO NOT EDIT. multictx Automated update of JSONLD files, DO NOT EDIT. multictx Automated update of JSONLD files, DO NOT EDIT. multictx activity activity Automated update of JSONLD files, DO NOT EDIT. activity Automated update of JSONLD files, DO NOT EDIT. new activity Automated update of JSONLD files, DO NOT EDIT. new activity Automated update of JSONLD files, DO NOT EDIT. new activity new activity Automated update of JSONLD files, DO NOT EDIT. development Automated update of JSONLD files, DO NOT EDIT. update new activity development development Automated update of JSONLD files, DO NOT EDIT. development Automated update of JSONLD files, DO NOT EDIT. development Automated update of JSONLD files, DO NOT EDIT. development development development Automated update of JSONLD files, DO NOT EDIT. development Automated update of JSONLD files, DO NOT EDIT. development development development development Automated update of JSONLD files, DO NOT EDIT. development development Automated update of JSONLD files, DO NOT EDIT. development development development development Automated update of JSONLD files, DO NOT EDIT. development Automated update of JSONLD files, DO NOT EDIT. development Automated update of JSONLD files, DO NOT EDIT. development development development development development development development development development development development development development development obs4MIPs WCRP-UNIVERSE development development development development development development development development development
- Loading branch information
Showing
281 changed files
with
10,188 additions
and
362 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
A store of materials needed for the wiki |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,17 @@ | ||
--- | ||
name: Other | ||
about: Creating a general issue | ||
title: 'Add a descriptive summary here.' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
# General Issue | ||
|
||
Please provided a detailed outline of the problem, discussion or suggestion. | ||
|
||
Make sure to provide the following where it might apply. | ||
|
||
- [ ] Any relevant files or code snippets | ||
- [ ] Where this occurs |
Binary file not shown.
Binary file not shown.
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,131 @@ | ||
name: publish_to_pages | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
- "jsonld_IV" | ||
|
||
# workflow_run: | ||
# workflows: ["Build", "Test"] # List the names of the workflows it should wait for | ||
# types: | ||
# - completed # Trigger only when the specified workflows complete | ||
|
||
|
||
|
||
jobs: | ||
push2production: | ||
runs-on: ubuntu-latest | ||
env: | ||
API_KEY: ${{ secrets.API_KEY }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: ${{ github.ref_name }} | ||
permissions: | ||
actions: write | ||
checks: write | ||
contents: write | ||
deployments: write | ||
id-token: write | ||
packages: write | ||
pages: write | ||
pull-requests: write | ||
repository-projects: write | ||
statuses: write | ||
steps: | ||
|
||
|
||
- name: Get a list of directories with updated files | ||
id: install-cmipld | ||
uses: WCRP-CMIP/CMIP-LD/actions/cmipld@main | ||
|
||
- name: Check out the repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Fetch the complete commit history | ||
|
||
- name: Set up Git | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "Daniel Ellis" | ||
git config credential.helper store | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Daniel Ellis" | ||
git config --global push.default current | ||
echo "GH_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: create symbolic link without extension | ||
id: push_to_production | ||
run: | | ||
# Check if production branch exists; if not, create an empty branch | ||
if ! git show-ref --verify --quiet refs/heads/production; then | ||
# Create an empty orphan branch named production | ||
git checkout --orphan production | ||
git rm -rf . | ||
# curl command here | ||
# echo "curl command here" | ||
# touch 404.html | ||
git checkout "${BRANCH}" -- 404.html | ||
# Create a .nojekyll file to prevent GitHub Pages from processing with Jekyll | ||
touch .nojekyll | ||
git add .nojekyll | ||
git commit -m "Add .nojekyll to production branch" | ||
# # Make sure the publish workflow exists | ||
# mkdir -p .github/workflows | ||
# Check out the static.yml file from the source branch to the production branch | ||
git checkout "${BRANCH}" -- .github/workflows/static.yml | ||
else | ||
git checkout production | ||
rm -rf docs | ||
fi | ||
# Checkout the specified branch's data_descriptors directory into production | ||
git checkout "${BRANCH}" -- data_descriptors | ||
# mv data_descriptors docs | ||
# copy the 404 code. | ||
cp 404.html data_descriptors/404.html | ||
cp .nojekyll data_descriptors/.nojekyll | ||
# Find all .json files and create symbolic links without the .json extension | ||
# return to copys as artifacts do not handle symlinks | ||
find . -type f -name "*.json" -exec sh -c 'cp "$0" "${0%.json}"' {} \; | ||
shell: bash | ||
|
||
|
||
- name: Update ctx | ||
id: update-ctx | ||
shell: bash | ||
run: | | ||
update_ctx | ||
continue-on-error: true | ||
|
||
- name: Commit changes | ||
id: commit | ||
run: | | ||
# Stage all changes, commit, and push to production branch | ||
git add -A | ||
git commit -m "production push" | ||
git push --force origin production | ||
shell: bash | ||
# Stage all changes, commit, and push to production branch | ||
|
||
|
||
# Trigger the second workflow using the GitHub Actions API | ||
- name: Trigger Production Workflow | ||
if: ${{ success() }} # Only trigger if previous steps were successful | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh workflow run static.yml --ref production | ||
# curl -X POST -H "Accept: application/vnd.github+json" \ | ||
# -H "Authorization: Bearer $GITHUB_TOKEN" \ | ||
# https://api.github.com/repos/${{ github.repository }}/actions/workflows/static.yml/dispatches \ | ||
# -d '{"ref":"production"}' |
Binary file not shown.
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,56 @@ | ||
name: Process a new issue | ||
|
||
on: | ||
issues: | ||
types: [edited, labeled] | ||
# opened | ||
|
||
jobs: | ||
|
||
process_template: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: write | ||
checks: write | ||
contents: write | ||
deployments: write | ||
id-token: write | ||
issues: write | ||
# discussions: write | ||
packages: write | ||
pages: write | ||
pull-requests: write | ||
repository-projects: write | ||
# security-events: write | ||
statuses: write | ||
|
||
|
||
|
||
|
||
steps: | ||
|
||
- name: Get a list of directories with updated files | ||
id: install-cmipld | ||
uses: WCRP-CMIP/CMIP-LD/actions/cmipld@main | ||
|
||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
|
||
- name: Run Python script | ||
id: run_python | ||
env: | ||
ISSUE_TITLE: ${{ github.event.issue.title }} | ||
ISSUE_BODY: | | ||
${{ github.event.issue.body }} | ||
# pipe should preseve newline properties for multilines | ||
ISSUE_SUBMITTER: ${{ github.event.issue.user.login }} | ||
ISSUE_NUMBER: ${{ github.event.issue.number }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
run: | | ||
new_element | ||
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,51 @@ | ||
name: Deploy static content to Pages | ||
|
||
on: | ||
workflow_dispatch: | ||
# Uncomment to trigger on push to the production branch as well | ||
# push: | ||
# branches: | ||
# - "production" | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: production | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
|
||
# - name: Pre-check files | ||
# run: | | ||
# for file in data_descriptors/*; do | ||
# if [ ! -f "$file" ]; then | ||
# echo "Error: $file does not exist." | ||
# exit 1 | ||
# fi | ||
# done | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: 'data_descriptors' | ||
retention-days: 0 | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
Oops, something went wrong.