Skip to content

try bundle zod

try bundle zod #4

Workflow file for this run

name: Publish codio-authoring plugin
on: push
env:
BINARY_REPOSITORY_URL: ${{ secrets.BINARY_REPOSITORY_URL }}
BINARY_REPOSITORY_CREDENTIALS: ${{ secrets.BINARY_REPOSITORY_USER }}:${{ secrets.BINARY_REPOSITORY_PASSWORD }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: build
run: ./build.sh "$GITHUB_SHA"
- name: Upload artifact
shell: bash
run: |
upload () {
local result_file=( codio-authoring-opencode-plugin-*.tar.gz )
local git_hash=${1}
local url="${BINARY_REPOSITORY_URL}/component-builds/codio-authoring-opencode-plugin-${git_hash}.tar.gz"
curl --fail -i -u"${BINARY_REPOSITORY_CREDENTIALS}" -T "${result_file[0]}" "${url}"
}
upload "${GITHUB_SHA}"
- name: Slack
uses: codio/codio-slack-action@master
if: always()
with:
slack_hook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
message: "<https://github.com/${{ github.repository }}/actions/runs/${{github.run_id}}|${{ github.workflow }} release> for ${{ github.repository }} by ${{ github.actor }} has ${{ job.status }} on branch ${{ github.ref_name }}"
success: ${{ job.status }}