* typescript support * frontend * type inference * type inference * v0 works * v0 typescript * v0 typescript * deno-client v0 * deno-client v0 * build_deno * rm autogenerated files * test workflow * test workflow * test workflow * test workflow * test workflow * test workflow * test workflow * test workflow * test workflow * test workflow * test workflow * test workflow * test workflow * test workflow * test workflow * test workflow * test workflow * test workflow * on tags * createResource * createResource * createResource2 * typescript support * templates * include version
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
name: Publish deno-client
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
env:
|
|
repo: windmill-deno-client
|
|
|
|
jobs:
|
|
build_deno_and_push_to_repo:
|
|
runs-on: ubuntu-latest
|
|
container: openapitools/openapi-generator-cli:v6.0.0-beta
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: generate_deno
|
|
run: |
|
|
cd deno-client
|
|
rm .gitignore
|
|
./generate.sh
|
|
- name: Pushes to another repository
|
|
id: push_directory
|
|
uses: cpina/github-action-push-to-another-repository@devel
|
|
env:
|
|
API_TOKEN_GITHUB: ${{ secrets.DENO_PAT }}
|
|
with:
|
|
source-directory: deno-client/
|
|
destination-github-username: ${{ github.repository_owner }}
|
|
destination-repository-name: ${{ env.repo }}
|
|
user-email: ruben@windmill.dev
|
|
commit-message: See ORIGIN_COMMIT from $GITHUB_REF
|
|
target-branch: main
|
|
|
|
tag_repo:
|
|
needs: [build_deno_and_push_to_repo]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
repository: ${{ github.repository_owner }}/${{ env.repo }}
|
|
token: ${{ secrets.DENO_PAT }}
|
|
path: ./client
|
|
|
|
- name: Push client
|
|
run: |
|
|
cd ./client
|
|
git config --global user.email "ruben@windmill.dev"
|
|
git config --global user.name "rubenfiszel[bot]"
|
|
git tag -a ${{ github.ref_name }} -m "${{ github.ref_name }}"
|
|
git push --tags
|