Skip to content
This repository was archived by the owner on Nov 22, 2020. It is now read-only.

Commit bd4a128

Browse files
committed
Automate deployment build
1 parent 929a299 commit bd4a128

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/deploy.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v1
17+
with:
18+
node-version: 12
19+
20+
- run: npm run dist
1621

1722
- run: git config user.name "${GITHUB_ACTOR}"
1823
- run: git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
19-
- run: git fetch
2024
- run: git push origin `git subtree split --prefix dist stable`:master --force

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
node_modules
3+
dist
34

45
# local env files
56
.env.local

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
"serve": "vue-cli-service serve",
1313
"serve:production": "vue-cli-service serve --mode production",
1414
"build": "vue-cli-service build",
15-
"dist": "echo Preparing for distribution... && npm i && npm run build && git add dist && git commit -m \"Update dist files\"",
16-
"lint": "vue-cli-service lint"
15+
"dist": "echo Preparing for distribution... && npm i && npm run build && git add dist --force && git commit -m \"Update dist files\"",
16+
"lint": "vue-cli-service lint",
17+
"test": "if test \"$NODE_ENV\" = \"workflow\"; then echo ok; else echo no; fi"
1718
},
1819
"dependencies": {
1920
"core-js": "^2.6.5",

0 commit comments

Comments
 (0)