osc-api-deploy release build #18
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-api-deploy 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@v2 | |
with: | |
ref: main | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0' | |
- name: Write Outscale API version to use | |
run: echo "${{ github.event.inputs.api_version }}" > api_version | |
- name: check version duplication | |
run: .github/scripts/release-check-duplicate.sh | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: auto-generate release | |
run: ./build.sh "${{ github.event.inputs.api_version }}" | |
- name: push release branch | |
run: .github/scripts/release-push.sh | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: create pull request | |
run: .github/scripts/release-pr.sh | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |