如何在github页面的react网页中进行更改?

问题描述

我已经在private void animateFocusRing(float x,float y) { ImageView focusRing = findViewById(R.id.focusRing); // Move the focus ring so that its center is at the tap location (x,y) float width = focusRing.getWidth(); float height = focusRing.getHeight(); focusRing.setX(x - width / 2); focusRing.setY(y - height / 2); // Show focus ring focusRing.setVisibility(View.VISIBLE); focusRing.setAlpha(1F); // Animate the focus ring to disappear focusRing.animate() .setStartDelay(500) .setDuration(300) .alpha(0F) .setListener(new Animator.AnimatorListener() { @Override public void onAnimationEnd(Animator animator) { focusRing.setVisibility(View.INVISIBLE); } // The rest of AnimatorListener's methods. }); } 分支中成功部署了我的反应网页。有我的主要源文件,请看Main branch。部署之后,分支main包含所有必需的文件,其中包含一个静态文件夹,并且所有文件在这里gh-pages branch看看。

但是,每当我在gh-pages分支中进行更改时,它都不会反映该网页。有什么办法可以推动我的所有更改?

恐怕我无法将更改推送到main分支,因为它具有完全不同的文件

如何进行这些更改?

我遵循了这些git命令,但是没有用

gh-pages

引自here

预先感谢...

解决方法

确保您的package.json文件中包含这些脚本,然后就可以运行npm run deploy

"scripts": {
//...
"predeploy": "npm run build","deploy": "gh-pages -d build"
}