Skip to content

add dr ranjitha

add dr ranjitha #14

Workflow file for this run

on: push
name: πŸš€ Deploy website on push
jobs:
build:
name: ⛏ Build
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@main
- name: βœ… Install Node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: πŸ‰ Install Yarn
run: npm install -g yarn
- name: πŸ“¦ Installing Packages
run: yarn install
- name: πŸ—οΈ Buidling Project
env:
PUBLIC_SANITY_PROJECT_ID: ${{ secrets.PUBLIC_SANITY_PROJECT_ID }}
PUBLIC_SANITY_DATASET: ${{ secrets.PUBLIC_SANITY_DATASET }}
PUBLIC_SANITY_GRAPHQL_URL: ${{ secrets.PUBLIC_SANITY_GRAPHQL_URL }}
run: yarn build
working-directory: ./web
- name: πŸ“₯ Archive production artifact
uses: actions/upload-artifact@main
with:
name: dist
path: web/dist/
deploy:
name: πŸŽ‰ Deploy
needs: build
runs-on: ubuntu-latest
steps:
# - name: 🚚 Get latest code
# uses: actions/checkout@main
- name: ⬇️ Download artifact
uses: actions/download-artifact@main
with:
name: dist
- name: πŸ§ͺ Test Artifact
run: ls -R
- name: 🌐 Global Config
run: git config --global user.email "[email protected]" && git config --global user.name "Your Name"
- name: πŸŽ›οΈ Gitify
run: git init
- name: πŸ•ΈοΈ Commit
run: git add . && git commit -m "Init"
- name: πŸ“‚ Sync files
uses: SamKirkland/[email protected]
with:
ftp-server: ${{ secrets.FTP_SERVER }}
ftp-username: ${{ secrets.FTP_USERNAME }}
ftp-password: ${{ secrets.FTP_PASSWORD }}
git-ftp-args: --insecure