Skip to content

Commit fe244fc

Browse files
committed
fix: CI
1 parent 6113bde commit fe244fc

3 files changed

Lines changed: 33 additions & 52 deletions

File tree

.github/workflows/manual-release-all.yml

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,31 @@ name: Release All Pipeline
22
on:
33
workflow_dispatch:
44
jobs:
5-
build-deploy:
5+
build-deploy:
66
runs-on: self-hosted
77
env:
8-
SCROLL_REGISTRY_ENDPOINT: ${{ secrets.SCROLL_REGISTRY_ENDPOINT }}
9-
SCROLL_REGISTRY_API_KEY: ${{ secrets.SCROLL_REGISTRY_API_KEY }}
10-
SCROLL_REGISTRY_API_SECRET: ${{ secrets.SCROLL_REGISTRY_API_SECRET }}
11-
SCROLL_REGISTRY_BUCKET: ${{ secrets.SCROLL_REGISTRY_BUCKET_LIVE }}
8+
SCROLL_REGISTRY_ENDPOINT: ${{ secrets.SCROLL_REGISTRY_ENDPOINT }}
9+
SCROLL_REGISTRY_API_KEY: ${{ secrets.SCROLL_REGISTRY_API_KEY }}
10+
SCROLL_REGISTRY_API_SECRET: ${{ secrets.SCROLL_REGISTRY_API_SECRET }}
11+
SCROLL_REGISTRY_BUCKET: ${{ secrets.SCROLL_REGISTRY_BUCKET_LIVE }}
1212
steps:
1313
- uses: actions/checkout@v3
14-
- uses: actions/setup-go@v3
14+
- name: Get registry binary
15+
uses: robinraju/release-downloader@v1.7
1516
with:
16-
go-version: '>=1.19.3'
17-
cache: true
18-
cache-dependency-path: scrolls-registry
19-
- name: Build Scroll Registry Tool
20-
shell: bash
21-
run: |
22-
go install ./scrolls-registry/scroll-registry.go
23-
echo "$GOBIN" >> $GITHUB_PATH
17+
repository: "highcard-dev/backend-monorepo-go"
18+
latest: true
19+
fileName: "scrolls-registry"
20+
token: ${{ secrets.GO_REPO_TOKEN }}
21+
- run: chmod +x ./scrolls-registry
2422
- name: Building only version updates
25-
run:
26-
scroll-registry build -d ./scrolls
23+
run: ./scrolls-registry build -d ./scrolls
2724
- name: Pushing new scrolls
2825
shell: bash
2926
run: |
30-
scroll-registry push -d ./scrolls -t packages
31-
scroll-registry push -d ./scrolls -t registry-index
27+
./scrolls-registry push -d ./scrolls -t packages
28+
./scrolls-registry push -d ./scrolls -t registry-index
3229
- name: Pushing new scrolls i18n
33-
run:
34-
scroll-registry push -d ./scrolls -t translations
30+
run: ./scrolls-registry push -d ./scrolls -t translations
3531
- name: Cleanup
36-
run:
37-
scroll-registry clean
32+
run: ./scrolls-registry clean

.github/workflows/pr.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: PR Pipeline
22
on:
33
pull_request:
4-
branches: [ master ]
4+
branches: [master]
55
jobs:
66
build-deploy:
77
runs-on: self-hosted
@@ -14,27 +14,27 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-go@v3
1616
with:
17-
go-version: '>=1.19.3'
17+
go-version: ">=1.19.3"
1818
cache: true
1919
cache-dependency-path: scrolls-registry
20-
- name: Build Scroll Registry Tool
21-
shell: bash
22-
run: |
23-
go install ./scrolls-registry/scroll-registry.go
24-
echo "$GOBIN" >> $GITHUB_PATH
20+
- name: Get registry binary
21+
uses: robinraju/release-downloader@v1.7
22+
with:
23+
repository: "highcard-dev/backend-monorepo-go"
24+
latest: true
25+
fileName: "scrolls-registry"
26+
token: ${{ secrets.GO_REPO_TOKEN }}
27+
- run: chmod +x ./scrolls-registry
2528
- name: Check current registry
26-
run: scroll-registry print
29+
run: ./scrolls-registry print
2730
- name: Building all
28-
run:
29-
scroll-registry build -d ./scrolls
31+
run: ./scrolls-registry build -d ./scrolls
3032
- name: Pushing new scrolls
3133
shell: bash
3234
run: |
33-
scroll-registry push -d ./scrolls -t packages
34-
scroll-registry push -d ./scrolls -t registry-index
35+
./scrolls-registry push -d ./scrolls -t packages
36+
./scrolls-registry push -d ./scrolls -t registry-index
3537
- name: Pushing new scrolls i18n
36-
run:
37-
scroll-registry push -d ./scrolls -t translations
38+
run: ./scrolls-registry push -d ./scrolls -t translations
3839
- name: Cleanup
39-
run:
40-
scroll-registry clean
40+
run: ./scrolls-registry clean

.github/workflows/release.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
name: Release Changed Pipeline
2-
permissions:
3-
contents: read
4-
actions: write
5-
checks: write
6-
deployments: write
7-
issues: write
8-
packages: write
9-
pull-requests: write
10-
repository-projects: write
11-
security-events: write
12-
statuses: write
132
on:
143
push:
154
branches:
@@ -33,9 +22,6 @@ jobs:
3322
latest: true
3423
fileName: "scrolls-registry"
3524
token: ${{ secrets.GO_REPO_TOKEN }}
36-
37-
- name: Setup tmate session
38-
uses: mxschmitt/action-tmate@v3
3925
- run: chmod +x ./scrolls-registry
4026
- name: Building only version updates
4127
run: ./scrolls-registry build -d ./scrolls -c

0 commit comments

Comments
 (0)