Bump black from 23.12.1 to 24.1.0 #668
Workflow file for this run
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: front build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: cd front && npm install | |
- run: cd front && npm run build | |
- run: cd front && npm test | |
DeployPages: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'push' }} | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/[email protected] # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Build | |
run: | | |
cd front | |
npm install | |
npm run build | |
cp -R build/ ../../ | |
cd .. | |
rm -Rf ./* | |
git checkout gh-pages | |
rm -Rf ./* | |
rm -Rf .github .gitignore .gitpod .gitpod.DockerFile .npmignore .npmrc | |
cp -R ../build/* ./ | |
- name: Create commits | |
run: | | |
git config user.name 'rom1504bot' | |
git config user.email '[email protected]' | |
git add --all | |
git commit --amend -m "Update gh-pages" | |
- name: Deploy 🚀 | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
force: true |