Simply I want to publish my react app on github pages so I want to move the build folder to docs folder and I am running react build using github actions
my integrate.yml looks like this
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/[email protected]
- name: Download Modules
run: npm ci
- name: React Build
run: |
npm run build
ls -a
mv build docs --verbose
ls -a
The output also shows that the folder is renamed
this is the output -
Find out more about deployment here:
https://cra.link/deployment
.
..
.git
.github
.gitignore
README.md
build
node_modules
package-lock.json
package.json
public
src
renamed 'build' -> 'docs'
.
..
.git
.github
.gitignore
README.md
docs
node_modules
package-lock.json
package.json
public
src
I cannot see any error or some form of wrong prompt
here is my github repository Github Repo
The command was working but the code changes in the local repository of actions does not automatically publish, you need to commit them inorder to the changes