File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 9
9
分別的部署方式如下:
10
10
11
11
- ` internal `
12
- 1 . 修改 [ pubspec.yaml] ( https://github.com/evan361425/flutter-pos-system/blob/master/pubspec.yaml ) 的版本資訊
13
- 2 . 在本地端打 tag,例如:` v1.0.0-rc1 `
12
+ 1 . 修改 [ pubspec.yaml] ( https://github.com/evan361425/flutter-pos-system/blob/master/pubspec.yaml ) 的版本資訊;
13
+ 2 . 在本地端打 tag,例如:` v1.0.0-rc1 ` ;
14
14
3 . 推到 GitHub 就會進行一系列的 CI/CD 流程。
15
15
- ` beta `
16
- 1 . 修改 [ pubspec.yaml] ( https://github.com/evan361425/flutter-pos-system/blob/master/pubspec.yaml ) 的版本資訊
17
- 2 . 在本地端打 tag,例如:` v1.0.0-beta `
18
- 3 . 推到 GitHub 就會進行一系列的 CI/CD 流程。
16
+ 1 . 修改 [ pubspec.yaml] ( https://github.com/evan361425/flutter-pos-system/blob/master/pubspec.yaml ) 的版本資訊;
17
+ 2 . 在本地端打 tag,例如:` v1.0.0-beta ` ;
18
+ 3 . 推到 GitHub 就會進行一系列的 CI/CD 流程;
19
+ 4 . 當 CI/CD 流程結束後,透過 ` git pull ` 把最新的 tag 拉下來。
19
20
- ` promote_to_production `
20
21
1 . 把 GitHub 的 [ draft release] ( https://github.com/evan361425/flutter-pos-system/releases ) publish 出來。
21
22
22
23
確認都沒問題後,可以把舊的 tag 清掉:
23
24
24
25
``` shell
25
- git tag | grep ' v1.0.0- ' | xargs git push --delete origin
26
- git tag | grep ' v1.0.0- ' | xargs git tag -d
26
+ git tag | grep " $( git describe --tag --abbrev=0 | cut -d ' - ' -f1 ) - " | xargs git push --delete origin
27
+ git tag | grep " $( git describe --tag --abbrev=0 | cut -d ' - ' -f1 ) - " | xargs git tag -d
27
28
```
You can’t perform that action at this time.
0 commit comments