Skip to content

Commit 772cdf3

Browse files
committed
release build
1 parent 46e3acf commit 772cdf3

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.github/workflows/xtracfg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: js
7070
working-directory: ./libxtracfg/js/xtracfg-native-binding
7171
run: |
72-
npm --loglevel verbose ci --ignore-scripts
72+
npm --loglevel verbose ci --workspaces=false
7373
npm --loglevel verbose run prebuildify
7474
npm --loglevel verbose run test
7575
- name: log3

.github/workflows/xtractl.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ jobs:
4040
name: dist
4141
path: ./xtractl/dist
4242
retention-days: 1
43+
- uses: actions/upload-artifact@v4
44+
with:
45+
name: common
46+
path: ./xtractl/Dockerfile
47+
retention-days: 1
4348

4449
docker:
4550
runs-on: ubuntu-latest
@@ -48,7 +53,10 @@ jobs:
4853
- name: load
4954
uses: actions/download-artifact@v4
5055
with:
51-
name: dist
56+
pattern: "{common,dist}"
57+
- name: chmod
58+
run: |
59+
chmod +x ./dist/*/xtractl
5260
- name: log1
5361
run: |
5462
ls -lR
@@ -75,7 +83,8 @@ jobs:
7583
if: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
7684
uses: docker/build-push-action@v6
7785
with:
78-
context: .
86+
context: ./dist
87+
file: ./common/Dockerfile
7988
push: true
8089
pull: true
8190
tags: |
@@ -88,7 +97,8 @@ jobs:
8897
if: ${{ github.ref_type == 'branch' && github.ref_name != 'main' }}
8998
uses: docker/build-push-action@v6
9099
with:
91-
context: .
100+
context: ./dist
101+
file: ./common/Dockerfile
92102
push: true
93103
pull: true
94104
tags: |
@@ -101,7 +111,8 @@ jobs:
101111
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
102112
uses: docker/build-push-action@v6
103113
with:
104-
context: .
114+
context: ./dist
115+
file: ./common/Dockerfile
105116
push: true
106117
pull: true
107118
tags: |

0 commit comments

Comments
 (0)