-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (38 loc) · 1.09 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
name: osc-sdk-js release build
on:
workflow_dispatch:
inputs:
api_version:
description: 'Outscale API version'
required: true
jobs:
auto-build:
environment: auto-build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: main
- uses: actions/setup-node@v3
with:
node-version: 16.3.0
- name: make nvm available
run: |
sudo cp ~/.nvm/nvm.sh /usr/local/bin/nvm
sudo chmod +x /usr/local/bin/nvm
- 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 }}