Skip to content

Commit

Permalink
chore: bootstrap releases for path: . (#45)
Browse files Browse the repository at this point in the history
* chore: bootstrap releases for path: .

* chore: config release please for monorepo

* chore: add manfiest

* chore: set to draft for now

* chore: set ruby versionFile

* chore: try to set component name

* chore: set both bump options

* chore: try to set sentence case plugin

* chore: spacing

* chore: just release rust engine for now

* chore: rm from draft

* chore: try to auto package engine on release
  • Loading branch information
markphelps authored Dec 24, 2023
1 parent 5cd8ec1 commit 3868145
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: "Tag to build"
required: true

jobs:
build:
Expand Down Expand Up @@ -50,10 +54,10 @@ jobs:
args: --target ${{ matrix.platform.target }} --release
use-cross: ${{ matrix.platform.use_cross }}

- uses: actions/upload-artifact@v4
- name: Upload Release Assets
uses: softprops/action-gh-release@v1
with:
name: fliptengine-${{ matrix.platform.name }}
path: |
tag_name: ${{ github.event.release.tag_name || inputs.tag }}
files: |
target/${{ matrix.platform.target }}/release/libfliptengine.*
target/${{ matrix.platform.target }}/release/flipt_engine.h
retention-days: 5
25 changes: 25 additions & 0 deletions .github/workflows/release-engine.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Release Engine"
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.FLIPT_RELEASE_BOT_APP_ID }}
private_key: ${{ secrets.FLIPT_RELEASE_BOT_APP_PEM }}
installation_id: ${{ secrets.FLIPT_RELEASE_BOT_INSTALLATION_ID }}

- uses: google-github-actions/release-please-action@v4
with:
token: ${{ steps.generate_token.outputs.token}}
7 changes: 7 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"flipt-engine": "0.0.0",
"flipt-client-go": "0.0.0",
"flipt-client-node": "0.0.0",
"flipt-client-python": "0.0.0",
"flipt-client-ruby": "0.0.0"
}
2 changes: 1 addition & 1 deletion flipt-client-ruby/lib/flipt_client/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Flipt
VERSION = '0.1.0'
VERSION = '0.0.1'
end
13 changes: 13 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"draft": false,
"prerelease": false,
"packages": {
"flipt-engine": {
"component": "flipt-engine",
"release-type": "rust"
}
}
}

0 comments on commit 3868145

Please sign in to comment.