File tree 3 files changed +36
-3
lines changed
3 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 21
21
- " .github/workflows/release.yaml"
22
22
23
23
jobs :
24
+ release-ui :
25
+ if : startsWith(github.ref, 'refs/tags/v') == true
26
+ runs-on : ubuntu-18.04
27
+ steps :
28
+ - uses : actions/checkout@v1
29
+ - uses : actions/setup-node@v1
30
+ with :
31
+ node-version : 12
32
+ registry-url : https://registry.npmjs.org/
33
+ - id : get_version
34
+ run : |
35
+ RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/!!p')
36
+ echo "::set-output name=release_version::$RELEASE_VERSION"
37
+ - name : Cache node modules
38
+ uses : actions/cache@v1
39
+ with :
40
+ path : ui/node_modules
41
+ key : ${{ runner.os }}-node-${{ hashFiles('**/ui/package-lock.json') }}
42
+ restore-keys : |
43
+ ${{ runner.os }}-node-
44
+ - name : Build UI
45
+ env :
46
+ VERSION : ${{ steps.get_version.outputs.release_version }}
47
+ NPM_CONFIG_GLOBALCONFIG : " dist/npm/config/npmrc"
48
+ NPM_REGISTRY_TOKEN : ${{ secrets.JF_NPM_TOKEN }}
49
+ CI : " false"
50
+ run : ./hack/build-ui.bash
51
+ - name : Upload ui tar
52
+ uses : actions/upload-artifact@v2
53
+ with :
54
+ name : ui-tar
55
+ path : release/ui.tar.gz
24
56
release :
25
57
if : startsWith(github.ref, 'refs/tags/v') == true
58
+ needs : [ release-ui ]
26
59
runs-on : macos-11
27
60
steps :
28
61
- name : Set up Go
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import (
23
23
)
24
24
25
25
// UIRepository is the repository containing the devspace UI
26
- const UIRepository = "https://github.com/devspace-sh /devspace"
26
+ const UIRepository = "https://github.com/ankorstore /devspace"
27
27
28
28
// UIDownloadBaseURL is the base url where to look for the ui
29
29
const UIDownloadBaseURL = UIRepository + "/releases/download"
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ import (
19
19
var version string
20
20
var rawVersion string
21
21
22
- var githubSlug = "devspace-sh /devspace"
23
- var reVersion = regexp .MustCompile (`\d+\.\d+\.\d+` )
22
+ var githubSlug = "ankorstore /devspace"
23
+ var reVersion = regexp .MustCompile (`\d+\.\d+\.\d+-aks.\d ` )
24
24
25
25
func eraseVersionPrefix (version string ) (string , error ) {
26
26
indices := reVersion .FindStringIndex (version )
You can’t perform that action at this time.
0 commit comments