removed video link #6
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
name: Build Check | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
deploy_staging: | |
name: Build Check | |
runs-on: ubuntu-latest | |
environment: | |
name: production | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
HOST: 0.0.0.0 | |
ADMIN_JWT_SECRET: ${{ secrets.ADMIN_JWT_SECRET }} | |
API_TOKEN_SALT: ${{ secrets.API_TOKEN_SALT }} | |
APP_KEYS: ${{ secrets.APP_KEYS }} | |
CLOUDINARY_KEY: ${{ secrets.CLOUDINARY_KEY }} | |
CLOUDINARY_NAME: ${{ secrets.CLOUDINARY_NAME }} | |
TRANSFER_TOKEN_SALT: ${{ secrets.TRANSFER_TOKEN_SALT }} | |
DATABASE_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} | |
DATABASE_USERNAME: ${{ secrets.DATABASE_USERNAME }} | |
JWT_SECRET: ${{ secrets.JWT_SECRET }} | |
TOKEN_TRANSFER_SALT: ${{ secrets.TOKEN_TRANSFER_SALT }} | |
DATABASE_HOST: ${{ vars.DATABASE_HOST }} | |
DATABASE_NAME: ${{ vars.DATABASE_NAME }} | |
DATABASE_PORT: ${{ vars.DATABASE_PORT }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.11.1' | |
- name: Install dependencies | |
run: npm install | |
- name: Build Strapi | |
run: npm run build | |
- name: Success | |
run: echo "🚧 Build successful 🚧" |