Skip to content

Commit d8bffcc

Browse files
Change to commit from apix bot
1 parent 7cd7cc3 commit d8bffcc

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
outputs:
2121
version: ${{ steps.version.outputs.version }}
2222
steps:
23+
- name: Set Apix Bot token
24+
id: app-token
25+
uses: mongodb/apix-action/token@6c3fde402c21942fa46cde003f190c2b23c59530
26+
with:
27+
app-id: ${{ secrets.APIXBOT_APP_ID }}
28+
private-key: ${{ secrets.APIXBOT_APP_PEM }}
2329
- uses: actions/checkout@v5
2430
with:
2531
token: ${{ secrets.GITHUB_TOKEN }}
@@ -60,8 +66,8 @@ jobs:
6066
run: yarn build --target x86_64-unknown-linux-gnu --use-napi-cross
6167
- name: Commit version changes
6268
run: |
63-
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
64-
git config --local user.name "github-actions[bot]"
69+
git config --global user.name "${{ steps.app-token.outputs.user-name }}"
70+
git config --global user.email "${{ steps.app-token.outputs.user-email }}"
6571
git add package.json Cargo.toml index.js index.d.ts CHANGELOG.md LICENSE-3RD-PARTY.txt
6672
git commit -m "${{ github.event.inputs.version }}"
6773
git push
@@ -117,6 +123,21 @@ jobs:
117123
.cargo-cache
118124
target/
119125
key: ${{ matrix.settings.target }}-cargo-${{ matrix.settings.host }}
126+
- uses: mlugg/setup-zig@v2
127+
if: ${{ contains(matrix.settings.target, 'musl') }}
128+
with:
129+
version: 0.14.1
130+
- name: Install cargo-zigbuild
131+
uses: taiki-e/install-action@v2
132+
if: ${{ contains(matrix.settings.target, 'musl') }}
133+
env:
134+
GITHUB_TOKEN: ${{ github.token }}
135+
with:
136+
tool: cargo-zigbuild
137+
- name: Setup toolchain
138+
run: ${{ matrix.settings.setup }}
139+
if: ${{ matrix.settings.setup }}
140+
shell: bash
120141
- name: Install dependencies
121142
run: yarn install
122143
- name: Build

0 commit comments

Comments
 (0)