Skip to content

feat: attempt deploy #6

feat: attempt deploy

feat: attempt deploy #6

name: Build and Deploy
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Clone deriv-app Repository
uses: actions/checkout@v4
with:
repository: 'binary-com/deriv-app'
path: 'deriv-app'
fetch-depth: 1
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install Dependencies
run: npm install
# - name: Install Dependencies
# run: npm install
# working-directory: ./deriv-app
# - name: Run Bootstrap
# run: npm run bootstrap
# working-directory: ./deriv-app
# - name: Build All Packages
# env:
# NODE_ENV: production
# run: npm run build:all
# shell: bash
# working-directory: ./deriv-app
# - name: Analyze Build
# run: npm run analyze
# working-directory: ./deriv-app
- name: Run Compile Script
run: node compile.js
working-directory: ${{ github.workspace }}
- name: Setup Git Config
run: |
git config user.name 'github-actions'
git config user.email '[email protected]'
- name: Commit and Push Changes
run: |
mkdir -p dist/2024-04-25
cp -r dist/* dist/2024-04-25/
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist/2024-04-25
target-folder: daily/2024-04-25
clean: false
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: static
clean: false