mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 16:02:14 +00:00
749a2f5ce8
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
58 lines
1.6 KiB
YAML
58 lines
1.6 KiB
YAML
name: Publish go-client
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
repo: windmill-go-client
|
|
|
|
jobs:
|
|
build_go_and_push_to_repo:
|
|
runs-on: ubicloud-standard-8
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v4
|
|
- name: install_jq
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install jq
|
|
- name: generate_go
|
|
run: |
|
|
go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.11.0
|
|
cd go-client
|
|
rm .gitignore
|
|
./build.sh
|
|
go build
|
|
- 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: go-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_go_and_push_to_repo]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
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
|