Skip to content

Commit

Permalink
ci (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
enovikov11 authored Oct 5, 2023
1 parent 5c5b969 commit 71d9fcb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@ jobs:
- name: Install dependencies
run: npm install

- name: Set Git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
- name: Run build
run: npm run build

- name: Run deploy script
run: npm run deploy
env:
REPO: https://${{ secrets.GITHUB_TOKEN }}@github.com/rtxdata/rtxdata.github.io.git
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2
with:
token: ${{ github.token }}
artifact_name: build

permissions:
contents: write
pages: write
id-token: write
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "gh-pages -d build -b main -r $REPO"
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
Expand Down

0 comments on commit 71d9fcb

Please sign in to comment.