Skip to content

Commit b6a34a2

Browse files
committed
ci: update release workflow
1 parent ca8e9be commit b6a34a2

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

.github/workflows/release-docs.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- next
78

89
jobs:
910
build-and-deploy:
@@ -21,7 +22,16 @@ jobs:
2122
- run: yarn build
2223

2324
- name: Deploy
25+
if: github.ref == 'refs/heads/main'
2426
uses: JamesIves/github-pages-deploy-action@4.1.7
2527
with:
2628
branch: gh-pages
27-
folder: docs/src/.vuepress/dist
29+
folder: docs/src/.vuepress/dist
30+
31+
- name: Deploy next
32+
if: github.ref == 'refs/heads/next'
33+
uses: JamesIves/github-pages-deploy-action@4.1.7
34+
with:
35+
branch: gh-pages
36+
folder: docs/src/.vuepress/dist
37+
target-folder: ./next

.github/workflows/release.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
name: Release
22

3-
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
3+
on: [push, pull_request]
104

115
jobs:
126
test:
@@ -31,7 +25,7 @@ jobs:
3125
name: Release
3226
runs-on: ubuntu-latest
3327
needs: [test]
34-
if: ${{ github.event_name == 'push' }}
28+
if: github.event_name == 'push'
3529
steps:
3630
- name: Checkout
3731
uses: actions/checkout@v2
@@ -45,7 +39,7 @@ jobs:
4539
run: yarn install
4640

4741
- name: Build
48-
run: yarn build-core && yarn build-vuetify
42+
run: yarn build-core && yarn build-vuetify && yarn build-light
4943

5044
- name: Release
5145
env:

.releaserc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
2-
"branches": ["main"],
2+
"branches": [
3+
{ "name": "main" },
4+
{ "name": "next", "channel": "channel-next" }
5+
],
36
"plugins": [
47
"@semantic-release/commit-analyzer",
58
"@semantic-release/release-notes-generator",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"dev-vuetify": "cd vuetify && yarn serve",
2323
"test": "yarn test-core",
2424
"test-core": "cd core && yarn test",
25-
"dry-run": "multi-semantic-release --dry-run",
25+
"dry-run": "multi-semantic-release --dry-run --ignore-private-packages",
2626
"lint": "eslint '**/*.js' '**/*.vue'",
2727
"lint-fix": "eslint --fix '**/*.js' '**/*.vue'"
2828
},

0 commit comments

Comments
 (0)