Skip to content

Commit

Permalink
Try to fix the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andrablaj committed Apr 5, 2024
1 parent 4745812 commit 5278f9e
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,19 @@ jobs:
with:
node-version: "lts/*"

- run: npm i
- run: PUBLIC_URL=/cht-tech-radar-contributors REACT_APP_RADAR_NAME="CHT Technology Radar for Contributors" npm run build:static
- name: Deploy to gh-pages
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.DEPLOY_TO_GITHUB_PAGES}}
external_repository: medic/medic.github.io
publish_dir: ./build
user_name: medic-ci
user_email: medic-ci@github
publish_branch: main

- run: npm i
- run: PUBLIC_URL=/cht-tech-radar-contributors REACT_APP_RADAR_NAME="CHT Technology Radar for Contributors" npm run build:static
- name: Deploy
env:
EMAIL: medic-ci@github
NAME: medic-ci
run: |
git config --global user.email $EMAIL
git config --global user.name $NAME
git remote set-url origin https://$NAME:${{ secrets.DEPLOY_TO_GITHUB_PAGES }}@github.com/medic/cht-tech-radar-contributors.git
npm run deploy

0 comments on commit 5278f9e

Please sign in to comment.