diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a339c538..fcd9121a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,24 +19,26 @@ jobs: - name: Install 🔧 run: yarn install + + - name: Build 🔧 + run: | + yarn build:production + touch out/.nojekyll + env: + GITHUB_TOKEN: ${{ secrets.TOKEN_SECRET }} - uses: actions/checkout@v3 - name: Download csv file of member form in gsheet run: | curl -L -o ./scripts/dataMember.csv https://docs.google.com/spreadsheets/d/1SaXnuRt-1KXyDGS18KqU7cus4_IWNxpGhiVy0J1vz-U/export?format=csv + - name: run python script to convert csv to json run: | cd ./scripts python script.py cp ./dataMember.json ../data/dataMember.json cd .. - - - name: Build 🔧 - run: | - yarn build:production - touch out/.nojekyll - env: - GITHUB_TOKEN: ${{ secrets.TOKEN_SECRET }} + - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@4.1.3 with: