Skip to content

Commit

Permalink
Merge pull request #126 from filecoin-project/develop
Browse files Browse the repository at this point in the history
chore: ship develop to main
  • Loading branch information
orvn authored Jan 19, 2024
2 parents 7b5d304 + 3626761 commit f58df9d
Show file tree
Hide file tree
Showing 474 changed files with 24,685 additions and 9,606 deletions.
10 changes: 10 additions & 0 deletions .fleek.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"build": {
"image": "node:16.14",
"command": "npm ci && npm run generate",
"publicDir": "dist",
"environment": {
"SERVER_ENV": "production"
}
}
}
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Enforce unix newlines
* text eol=lf

*.png binary
*.jpg binary
*.jpeg binary
*.webp binary
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Report a bug
about: File a bug report
title: ''
labels: bug
assignees: ''

---

<!--
Hello! To ensure this issue is correctly addressed as soon as possible by the Filecoin team, please try to make sure:
- This issue is relevant to this repository's topic or codebase.
- A clear description is provided.
- Any steps to reproduce are included.
- If relevant, your device, browser, and OS are included.
(you can delete this section after reading)
-->
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Getting Help on IPFS
url: https://ipfs.io/help
about: All information about how and where to get help on IPFS.
- name: IPFS Official Forum
url: https://discuss.ipfs.io
about: Please post general questions, support requests, and discussions here.
- name: Ecosystem directory website
url: https://filecoinecosystem.io
about: Explore the ecosystem directory to see what projects are already listed
- name: Get in touch with the community
url: https://filecoin.io/slack
about: Join Filecoin community Slack and search available channels
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/open-an-issue.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@
name: Content or feature suggestion
about: Have a request for new content, or want to request a new feature for this
site? Do it here.
title: "[SUGGESTION] (your title goes here)"
title: ''
labels: need/triage
assignees: ''

---

<!--
Hello! To ensure this issue is correctly addressed as soon as possible by the IPFS team, please try to make sure:
Hello! To ensure this issue is correctly addressed as soon as possible by the Filecoin team, please try to make sure:
- A clear description is provided. It should includes as much relevant information as possible and clear scope for the issue to be actionable. If you have any images or sketches to go along with the suggestion, please include them here.
FOR GENERAL DISCUSSION, HELP OR QUESTIONS, please see the options at https://ipfs.io/help or head directly to https://discuss.ipfs.io.
(you can delete this section after reading)
-->
31 changes: 31 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/add-or-edit-project.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## Project content addition or change
<!-- Remove contents if not relevant to project change -->

#### Purpose

The purpose of this pull request is to
- [ ] Add a new project
- [ ] Modify an existing project

_please select one_


#### Description

<!-- Please include a summary of your changes -->

#### Checklist

- [ ] I'm affiliated with the project that I'm modifying or adding

- [ ] I've added content in accordance with the project schema

- [ ] My project has a suitable icon

- [ ] I've selected the most appropriate subcategory for my project to fit into

- [ ] All checks on this pull request pass

- [ ] I have not modified any other project files

- [ ] I have performed a self-review of my own additions, and everything looks correct
83 changes: 83 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Validation

on:
pull_request:
push:
branches:
- main
- develop

jobs:
json_validation:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Check for new or modified JSON project files
id: check_files
run: |
JSON_COUNT=$(git diff --name-only HEAD^..HEAD | grep -c "content/projects/.*\.json" || true)
echo "::set-output name=count::$JSON_COUNT"
- name: Configure Node 16
if: steps.check_files.outputs.count != '0'
uses: actions/setup-node@v2
with:
node-version: 16

- name: Cache npm dependencies
if: steps.check_files.outputs.count != '0'
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install npm dependencies
if: steps.check_files.outputs.count != '0'
run: npm ci

- name: Set script permissions
if: steps.check_files.outputs.count != '0'
run: chmod +x ./scripts/basic-validation.sh

- name: Validate JSON files
if: steps.check_files.outputs.count != '0'
run: ./scripts/basic-validation.sh

schema_validation:
needs: json_validation
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Check if JSON files are modified
id: check_files
run: |
JSON_COUNT=$(git diff --name-only HEAD^..HEAD | grep -c "content/projects/.*\.json" || true)
echo "::set-output name=count::$JSON_COUNT"
- name: Configure Node 16
if: steps.check_files.outputs.count != '0'
uses: actions/setup-node@v2
with:
node-version: 16

- name: Install NPM dependencies
if: steps.check_files.outputs.count != '0'
run: npm ci

- name: Set script permissions
if: steps.check_files.outputs.count != '0'
run: chmod +x ./scripts/schema-validation.sh

- name: Validate JSON schema
if: steps.check_files.outputs.count != '0'
run: ./scripts/schema-validation.sh
2 changes: 2 additions & 0 deletions .nuxtignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ignore v1 _project.vue page
# pages/_project.vue
Loading

0 comments on commit f58df9d

Please sign in to comment.