Merge pull request #541 from dedis/update-golangci #7
This file contains 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 Static Site and React App to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Install dependencies and build React app | |
run: | | |
cd ./docs/benchmark-app/ | |
npm install | |
npm run build | |
cd ../../ | |
mkdir -p public/benchmark | |
mv ./docs/benchmark-app/build/* public/benchmark/ | |
- name: Copy static index.html | |
run: | | |
cp ./docs/index.html public/ | |
cp ./docs/*.md public/ | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public |