We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81fdc9c commit 27f3377Copy full SHA for 27f3377
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,29 @@
1
+name: Generate a build and push to another branch
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - master
7
8
+jobs:
9
+ build:
10
+ runs-on: ubuntu-lates
11
+ name: Build and Push
12
+ steps:
13
+ - name: git-checkout
14
+ uses: actions/checkout@v2
15
16
+ - name: Install all dependencies
17
+ run: npm install
18
19
+ - name: Build
20
+ run: npm run build # Build Command
21
22
+ - name: Push
23
+ run: s0/git-publish-subdir-action@develop
24
+ env:
25
+ REPO: self
26
+ BRANCH: build #the branch to push to hostinger
27
+ FOLDER: build #directory of code
28
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} #Will be added automatically by Github
29
+ MESSAGE: "Build: ({sha}) {msg}" #Commit message
0 commit comments