first commit #1
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 to Contentstack Launch | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install deployment script dependencies | |
| run: npm install form-data archiver dotenv | |
| - name: Deploy to Contentstack Launch | |
| env: | |
| CONTENTSTACK_CLIENT_ID: ${{ secrets.CONTENTSTACK_CLIENT_ID }} | |
| CONTENTSTACK_CLIENT_SECRET: ${{ secrets.CONTENTSTACK_CLIENT_SECRET }} | |
| CONTENTSTACK_REGION: ${{ secrets.CONTENTSTACK_REGION }} | |
| PROJECT_UID: ${{ secrets.PROJECT_UID }} | |
| ENVIRONMENT_UID: ${{ secrets.ENVIRONMENT_UID }} | |
| run: node deploy-api.js |