Skip to content

Commit 27f3377

Browse files
added github actions for hostinger CI/CD
1 parent 81fdc9c commit 27f3377

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)