Update articles collection - 2025-08-26T11:26:06.954Z #10
This file contains hidden or 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
| name: Deploy Coti-Blog-Filesystem | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22.15.1] | |
| environment: | |
| name: ${{ github.ref_name }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Validate JSON structure | |
| run: | | |
| # Validate that the JSON file exists and is valid | |
| if [ ! -f "files/blog_articles.json" ]; then | |
| echo "Error: blog_articles.json not found" | |
| exit 1 | |
| fi | |
| # Validate JSON syntax (using Node.js) | |
| node -e "JSON.parse(require('fs').readFileSync('files/blog_articles.json', 'utf8'))" | |
| echo "✅ JSON validation passed" | |
| # Add your deployment steps here | |
| - name: Deploy | |
| run: | | |
| echo "Add your deployment logic here" | |
| # Example: sync to S3, upload to server, etc. |