Skip to content

v1.0.1

v1.0.1 #3

Workflow file for this run

name: Release
on:
release:
types: [created]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.22'
- name: Check out code
uses: actions/checkout@v2
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
go build -v -o claude2openai-${{ matrix.goos }}-${{ matrix.goarch }}
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: claude2openai-${{ matrix.goos }}-${{ matrix.goarch }}
path: claude2openai-${{ matrix.goos }}-${{ matrix.goarch }}
- name: Upload Artifact to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./claude2openai-${{ matrix.goos }}-${{ matrix.goarch }}
asset_name: claude2openai-${{ matrix.goos }}-${{ matrix.goarch }}
asset_content_type: application/octet-stream