8
8
push :
9
9
branches :
10
10
- v1
11
+ - v2
11
12
12
13
permissions :
13
14
# required for npm provenance
41
42
version : 9.x.x
42
43
run_install : true
43
44
44
- - name : install webkit2gtk and libudev for [authenticator]
45
- run : |
46
- sudo apt-get update
47
- sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libudev-dev
48
-
49
45
- name : cargo login
50
46
run : cargo login ${{ secrets.ORG_CRATES_IO_TOKEN }}
51
47
@@ -54,24 +50,36 @@ jobs:
54
50
git config --global user.name "${{ github.event.pusher.name }}"
55
51
git config --global user.email "${{ github.event.pusher.email }}"
56
52
53
+ - name : Setup target dir on /mnt
54
+ # This directory has a larger partition size
55
+ run : |
56
+ sudo mkdir /mnt/target
57
+ WORKSPACE_OWNER="$(stat -c '%U:%G' "${GITHUB_WORKSPACE}")"
58
+ sudo chown -R "${WORKSPACE_OWNER}" /mnt/target
59
+
57
60
- name : covector version or publish (publish when no change files present)
58
61
uses : jbolda/covector/packages/action@covector-v0
59
62
id : covector
60
63
env :
64
+ CARGO_TARGET_DIR : /mnt/target
61
65
NODE_AUTH_TOKEN : ${{ secrets.ORG_NPM_TOKEN }}
62
66
with :
63
67
token : ${{ secrets.GITHUB_TOKEN }}
64
68
command : " version-or-publish"
65
69
createRelease : true
66
70
recognizeContributors : true
67
71
72
+ - name : Sync Cargo.lock
73
+ if : steps.covector.outputs.commandRan == 'version'
74
+ run : cargo tree --depth 0
75
+
68
76
- name : Create Pull Request With Versions Bumped
69
77
id : cpr
70
78
uses : tauri-apps/create-pull-request@v3
71
79
if : steps.covector.outputs.commandRan == 'version'
72
80
with :
73
- title : " Publish New Versions"
81
+ title : " Publish New Versions (${{ github.ref_name }}) "
74
82
commit-message : " publish new versions"
75
83
labels : " version updates"
76
- branch : " ci/release-v1 "
84
+ branch : " ci/release-${{ github.ref_name }} "
77
85
body : ${{ steps.covector.outputs.change }}
0 commit comments