From 235218ce0caf6ee6fc9be9ed3d82ee7d30bae39e Mon Sep 17 00:00:00 2001 From: Tomasz Tutka Date: Tue, 1 Oct 2024 13:57:49 +0200 Subject: [PATCH] added release flow, edited makefile --- .github/workflows/release.yml | 41 +++++++++++++++++++++++++++++++++++ Makefile | 2 +- version | 1 + 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml create mode 100644 version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e41b5ec --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,41 @@ +name: generate-release +# This workflow will generate changelog and release notes. +# Source: https://github.com/terraform-aws-modules/terraform-aws-vpc/blob/master/.github/workflows/release.yml + +on: + workflow_dispatch: + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + ssh-key: ${{ secrets.DEPLOY_KEY }} + + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file + + - name: Release + uses: cycjimmy/semantic-release-action@v4.0.0 + with: + semantic_version: 19.0.5 + extra_plugins: | + @semantic-release/exec@6.0.3 + @semantic-release/git@10.0.0 + conventional-changelog-conventionalcommits@4.6.3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SETTINGS_PATH: ${{ github.workspace }}/settings.xml + GIT_AUTHOR_NAME: equinix-labs@auto-commit-workflow + GIT_AUTHOR_EMAIL: bot@equinix.noreply.github.com + GIT_COMMITTER_NAME: equinix-labs@auto-commit-workflow + GIT_COMMITTER_EMAIL: bot@equinix.noreply.github.com diff --git a/Makefile b/Makefile index 1dc4398..7cc7398 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ CURRENT_GID := $(shell id -g) GIT_ORG=equinix-labs GIT_REPO=fabric-sdk-java -PACKAGE_VERSION=$(shell cat spec/oas3.fabric.config.json | jq -r '.artifactVersion') +PACKAGE_VERSION=$(shell cat version) # Equinix fabric OAS 3.0.0 SPEC_FETCHED_FILE:=spec/oas3.fabric.fetched.json diff --git a/version b/version new file mode 100644 index 0000000..ac39a10 --- /dev/null +++ b/version @@ -0,0 +1 @@ +0.9.0