You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This uses an action maintained by GitHub - [actions/push-new-files-back-to-master](https://github.com/marketplace/actions/push-new-files-back-to-master).
26
50
@@ -34,15 +58,15 @@ This uses an action maintained by GitHub - [actions/push-new-files-back-to-maste
34
58
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35
59
```
36
60
37
-
If you don't want to commit to master, you can specify a branch in `env` like so:
61
+
If you don't want to commit to `master`, you can specify a branch in `env` like so:
38
62
39
-
```
63
+
```yaml
40
64
BRANCH_NAME: my-branch
41
65
```
42
66
43
67
If you look at the code in the action, this is what is does (excluding validating variables and working with GitHub LFS).
44
68
45
-
I've refactored it.
69
+
I've refactored it below.
46
70
47
71
- `entrypoint.sh`
48
72
```sh
@@ -65,7 +89,7 @@ I've refactored it.
65
89
git push publisher ${BRANCH_NAME}
66
90
```
67
91
68
-
### Notes on the shell script
92
+
#### Notes on the shell script
69
93
70
94
This action works on the root and doesn't let you target a build directory like `_site`. So this is not a good idea for GH Pages. Even if you switch from `master` to `gh-pages` and your `.md` files are gone, your unversioned files (cache and gems) won't be ignored properly and would be committed unnecessarily.
0 commit comments