osc-sdk-go release build #40
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: osc-sdk-go release build | |
on: | |
workflow_dispatch: | |
inputs: | |
api_version: | |
description: 'Outscale API version' | |
required: true | |
jobs: | |
auto-build-v1: | |
environment: auto-build | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: v1 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19 | |
- name: Write Outscale API version to use | |
run: echo "${{ github.event.inputs.api_version }}" > api_version | |
- name: check for release duplicate | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: make release-check-duplicate | |
- name: auto-generate release | |
run: make release-build | |
- name: push release branch | |
run: make release-push | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: create pull request | |
run: make release-pr | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
auto-build-v2: | |
environment: auto-build | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19 | |
- name: Write Outscale API version to use | |
run: echo "${{ github.event.inputs.api_version }}" > api_version | |
- name: check for release duplicate | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: make release-check-duplicate | |
- name: auto-generate release | |
run: make release-build | |
- name: push release branch | |
run: make release-push | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: create pull request | |
run: make release-pr | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |