-
Notifications
You must be signed in to change notification settings - Fork 9
64 lines (62 loc) · 1.79 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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 }}