Merge pull request #2004 from ykimdeveloper/1975-FEAT-Debounce100ms #113
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 NRD Frontend | |
| on: | |
| push: | |
| branches: | |
| - main | |
| defaults: | |
| run: | |
| working-directory: . | |
| jobs: | |
| build: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo Code | |
| uses: actions/checkout@v2 | |
| # - name: Setup Python | |
| # uses: actions/setup-python@v2 | |
| # with: | |
| # python-version: '2.x' | |
| - name: Use Node.js 18.x | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18.x' | |
| - name: Install Packages | |
| run: npm ci | |
| - name: Setup environment | |
| run: | | |
| echo "VITE_MAPBOX_TOKEN=${{ secrets.VITE_MAPBOX_TOKEN }}" > .env | |
| echo "SOCRATA_API_URL=${{ secrets.SOCRATA_API_URL }}" >> .env | |
| echo "SOCRATA_TOKEN=${{ secrets.SOCRATA_TOKEN }}" >> .env | |
| echo "VITE_CONTENTFUL_SPACE=${{ secrets.VITE_CONTENTFUL_SPACE }}" >> .env | |
| echo "VITE_CONTENTFUL_TOKEN=${{ secrets.VITE_CONTENTFUL_TOKEN }}" >> .env | |
| # JamesIves | |
| - name: Build website | |
| run: npm run build | |
| - name: JamesIves Deploy | |
| uses: JamesIves/github-pages-deploy-action@4.1.1 | |
| with: | |
| # TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
| FOLDER: dist | |
| BRANCH: gh-pages | |
| # Chelsey | |
| # - name: Configuring git… | |
| # run: | | |
| # git config --global user.email "hungrylulu8@gmail.com" | |
| # git config --global user.name "edwinjue" | |
| # git remote rm origin | |
| # git remote add origin https://github.com/edwinjue/311-data-v2-gh-pages.git | |
| # - name: Chelsey Deploy via gh-pages | |
| # run: | | |
| # npm run deploy |