diff options
| author | Brendan Allan <[email protected]> | 2025-12-20 02:22:17 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-19 13:22:17 -0500 |
| commit | 943fbf39a333ab4182e6f598c89f995d5063dbe1 (patch) | |
| tree | b6c3e28cf24f60128b8afc55c137bd622c1d8cc3 /.github/workflows | |
| parent | d8a34c2fcc6e36a831d6d340aae63d12ec69b73f (diff) | |
| download | opencode-943fbf39a333ab4182e6f598c89f995d5063dbe1.tar.gz opencode-943fbf39a333ab4182e6f598c89f995d5063dbe1.zip | |
ci: separate standalone publishing from dependent publishing (#5634)
Co-authored-by: GitHub Action <[email protected]>
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/publish.yml | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b6da34dbc..163b8a01a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -41,18 +41,6 @@ jobs: - uses: ./.github/actions/setup-bun - - name: Setup SSH for AUR - if: inputs.bump || inputs.version - run: | - sudo apt-get update - sudo apt-get install -y pacman-package-manager - mkdir -p ~/.ssh - echo "${{ secrets.AUR_KEY }}" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - git config --global user.email "[email protected]" - git config --global user.name "opencode" - ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts || true - - name: Install OpenCode if: inputs.bump || inputs.version run: bun i -g [email protected] @@ -77,7 +65,7 @@ jobs: - name: Publish id: publish - run: ./script/publish.ts + run: ./script/publish-start.ts env: OPENCODE_BUMP: ${{ inputs.bump }} OPENCODE_VERSION: ${{ inputs.version }} @@ -212,6 +200,23 @@ jobs: fetch-depth: 0 ref: ${{ needs.publish.outputs.tagName }} - - run: gh release edit ${{ needs.publish.outputs.tagName }} --draft=false + - uses: ./.github/actions/setup-bun + + - name: Setup SSH for AUR + run: | + sudo apt-get update + sudo apt-get install -y pacman-package-manager + mkdir -p ~/.ssh + echo "${{ secrets.AUR_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + git config --global user.email "[email protected]" + git config --global user.name "opencode" + ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts || true + + - run: ./script/publish-complete.ts env: - GH_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }} + OPENCODE_BUMP: ${{ inputs.bump }} + OPENCODE_VERSION: ${{ inputs.version }} + AUR_KEY: ${{ secrets.AUR_KEY }} + GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }} + OPENCODE_RELEASE_TAG: ${{ needs.publish.outputs.tagName }} |
