Skip to content

Commit

Permalink
cd to package
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed May 10, 2024
1 parent a8e4e1f commit d93ab3e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/generate-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ jobs:
run: |
cd swift-combine-client
mkdir -p .github/workflows/
printf '%s\n' 'name: Build' 'on:' ' push:' ' branches: [ main ]' ' pull_request:' ' branches: [ main ]' 'jobs:' ' build:' ' runs-on: ubuntu-latest' ' steps:' ' - uses: actions/checkout@v4' ' - name: Set up Swift' ' uses: swift-actions/setup-swift@v2' ' - name: Build' ' run: swift build' ' - name: Test' ' run: swift test' > .github/workflows/build.yml
printf '%s\n' 'name: Build' 'on:' ' push:' ' branches: [ main ]' ' pull_request:' ' branches: [ main ]' 'jobs:' ' build:' ' runs-on: ubuntu-latest' ' steps:' ' - uses: actions/checkout@v4' ' - name: Set up Swift' ' uses: swift-actions/setup-swift@v2' ' - name: Build' ' run: cd Dofusdude && swift build' ' - name: Test' ' run: cd Dofusdude && swift test' > .github/workflows/build.yml
cd ..
- name: Pushes to sdk repository
Expand Down Expand Up @@ -254,13 +254,13 @@ jobs:
- name: Generate Dart sdk
uses: openapi-generators/openapitools-generator-action@v1
with:
generator: dart-dio
generator: dart
openapi-file: openapi-3.0.yaml
command-args: --additional-properties=pubAuthor=stelzo,pubAuthorEmail=stelzo@steado.de,pubHomepage=https://github.com/dofusdude,pubLibrary=dofusdude.api,pubName=Dofusdude,pubVersion=${{steps.api-version-print.outputs.apiVersion}},pubRepository=https://github.com/dofusdude/dofusdude-dart
command-args: --additional-properties=pubAuthor=stelzo,pubAuthorEmail=stelzo@steado.de,pubHomepage=https://github.com/dofusdude,pubLibrary=dofusdude.api,pubName=dofusdude,pubVersion=${{steps.api-version-print.outputs.apiVersion}},pubRepository=https://github.com/dofusdude/dofusdude-dart

- name: Add actions
run: |
cd dart-dio-client
cd dart-client
mkdir -p .github/workflows/
printf '%s\n' 'name: Build' 'on:' ' push:' ' branches: [ main ]' ' pull_request:' ' branches: [ main ]' 'jobs:' ' build:' ' runs-on: ubuntu-latest' ' steps:' ' - uses: actions/checkout@v4' ' - name: Set up Dart' ' uses: dart-lang/setup-dart@v1' ' - name: Install deps' ' run: dart pub get' ' - name: Test' ' run: dart test' > .github/workflows/build.yml
printf '%s\n' 'name: Publish' 'on:' ' push:' ' tags:' ' - 'v[0-9]+.[0-9]+.[0-9]+*'' 'jobs:' ' publish:' ' permissions:' ' id-token: write' ' uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1' > .github/workflows/publish.yml
Expand All @@ -273,7 +273,7 @@ jobs:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY_DART }}
API_TOKEN_GITHUB: ${{ secrets.PUSH_GITHUB_TOKEN }}
with:
source-directory: "dart-dio-client"
source-directory: "dart-client"
destination-github-username: "dofusdude"
destination-repository-name: "dofusdude-dart"
user-email: stelzo@steado.de
Expand Down

0 comments on commit d93ab3e

Please sign in to comment.