11name : Release Changed Pipeline
2+ permissions :
3+ contents : read
24on :
35 push :
46 branches :
57 - master
68 tags :
79 - v*
810jobs :
9- build-deploy :
11+ build-deploy :
1012 runs-on : self-hosted
1113 env :
12- SCROLL_REGISTRY_ENDPOINT : ${{ secrets.SCROLL_REGISTRY_ENDPOINT }}
13- SCROLL_REGISTRY_API_KEY : ${{ secrets.SCROLL_REGISTRY_API_KEY }}
14- SCROLL_REGISTRY_API_SECRET : ${{ secrets.SCROLL_REGISTRY_API_SECRET }}
15- SCROLL_REGISTRY_BUCKET : ${{ secrets.SCROLL_REGISTRY_BUCKET_STAGING }}
14+ SCROLL_REGISTRY_ENDPOINT : ${{ secrets.SCROLL_REGISTRY_ENDPOINT }}
15+ SCROLL_REGISTRY_API_KEY : ${{ secrets.SCROLL_REGISTRY_API_KEY }}
16+ SCROLL_REGISTRY_API_SECRET : ${{ secrets.SCROLL_REGISTRY_API_SECRET }}
17+ SCROLL_REGISTRY_BUCKET : ${{ secrets.SCROLL_REGISTRY_BUCKET_STAGING }}
1618 steps :
1719 - uses : actions/checkout@v3
1820 - uses : actions/setup-go@v3
1921 with :
20- go-version : ' >=1.19.3'
22+ go-version : " >=1.19.3"
2123 cache : true
2224 cache-dependency-path : scrolls-registry
2325 - name : Build Scroll Registry Tool
2426 shell : bash
2527 run : |
26- go install ./scrolls-registry/scroll-registry.go
27- echo "$GOBIN" >> $GITHUB_PATH
28+ wget -O- --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' https://github.com/highcard-dev/backend-monorepo-go/releases/download/latest/scrolls-registry
2829 - name : Building only version updates
29- run :
30- scroll-registry build -d ./scrolls -c
30+ run : ./scroll-registry build -d ./scrolls -c
3131 - name : Pushing new scrolls
3232 shell : bash
3333 run : |
34- scroll-registry push -d ./scrolls -t packages
35- scroll-registry push -d ./scrolls -t registry-index
34+ ./ scroll-registry push -d ./scrolls -t packages
35+ ./ scroll-registry push -d ./scrolls -t registry-index
3636 - name : Pushing new scrolls i18n
37- run :
38- scroll-registry push -d ./scrolls -t translations
37+ run : ./scroll-registry push -d ./scrolls -t translations
3938 - name : Cleanup
40- run :
41- scroll-registry clean
39+ run : ./scroll-registry clean
0 commit comments