fix: copy-pasteable curl upload example #336
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: [push] | |
jobs: | |
fern-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Install Fern | |
run: npm install -g fern-api | |
- name: Check Fern API is valid | |
run: fern check | |
fern-generate-ruby: | |
needs: fern-check | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/ruby@') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
- name: Download Fern | |
run: npm install -g fern-api | |
- name: Release Ruby SDK | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }} | |
run: | | |
tag=${{ github.ref_name }} | |
prefix="ruby@" | |
SDK_VERSION="${tag#$prefix}" | |
fern generate --group ruby-sdk --version "$SDK_VERSION" --log-level debug | |
fern-generate-java: | |
needs: fern-check | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/java@') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
- name: Download Fern | |
run: npm install -g fern-api | |
- name: Release Java SDK | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
run: | | |
tag=${{ github.ref_name }} | |
prefix="java@" | |
SDK_VERSION="${tag#$prefix}" | |
fern generate --group java-sdk --version "$SDK_VERSION" --log-level debug | |
fern-generate-csharp: | |
needs: fern-check | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/csharp@') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
- name: Download Fern | |
run: npm install -g fern-api | |
- name: Release Java SDK | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
run: | | |
tag=${{ github.ref_name }} | |
prefix="csharp@" | |
SDK_VERSION="${tag#$prefix}" | |
fern generate --group chsarp-sdk --version "$SDK_VERSION" --log-level debug |