summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2026-01-30 00:04:51 -0500
committerDax Raad <[email protected]>2026-01-30 00:04:51 -0500
commit5d0122b5a976105e5924ba99e7b17a814c718947 (patch)
tree49f28a3f61087c55d4784a8505d9efae26cc7c01 /.github
parent1ab4bbc275c0d9a4b7bc5bab1958ba0506a4852b (diff)
downloadopencode-5d0122b5a976105e5924ba99e7b17a814c718947.tar.gz
opencode-5d0122b5a976105e5924ba99e7b17a814c718947.zip
ci
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/publish.yml24
1 files changed, 18 insertions, 6 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 8e9a44bb2..73755153a 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -37,6 +37,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-bun
+
+ - name: Setup git committer
+ id: committer
+ uses: ./.github/actions/setup-git-committer
+ with:
+ opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
+ opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
- id: version
run: |
./script/version.ts
@@ -155,7 +162,7 @@ jobs:
bun ./scripts/prepare.ts
env:
OPENCODE_VERSION: ${{ needs.version.outputs.version }}
- GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
+ GITHUB_TOKEN: ${{ steps.committer.outputs.token }}
RUST_TARGET: ${{ matrix.settings.target }}
GH_TOKEN: ${{ github.token }}
GITHUB_RUN_ID: ${{ github.run_id }}
@@ -228,11 +235,16 @@ jobs:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- - name: Setup Git Identity
+ - name: Setup git committer
+ id: committer
+ uses: ./.github/actions/setup-git-committer
+ with:
+ opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
+ opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
+
+ - name: Setup Git remote
run: |
- git config --global user.email "[email protected]"
- git config --global user.name "opencode"
- git remote set-url origin https://x-access-token:${{ secrets.SST_GITHUB_TOKEN }}@github.com/${{ github.repository }}
+ git remote set-url origin https://x-access-token:${{ steps.committer.outputs.token }}@github.com/${{ github.repository }}
- uses: actions/download-artifact@v4
with:
@@ -263,6 +275,6 @@ jobs:
OPENCODE_VERSION: ${{ needs.version.outputs.version }}
OPENCODE_RELEASE: ${{ needs.version.outputs.release }}
AUR_KEY: ${{ secrets.AUR_KEY }}
- GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
+ GITHUB_TOKEN: ${{ steps.committer.outputs.token }}
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
NPM_CONFIG_PROVENANCE: false