-
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master-master-github' into feature/modelina_integration
# Conflicts: # README.md # package-lock.json # package.json
- Loading branch information
Showing
6 changed files
with
287 additions
and
43 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Bump Homebrew formula for CLI | ||
|
||
on: | ||
# It cannot run on release event as when release is created then version is not yet bumped in package.json | ||
# This means we cannot extract easily latest version and have a risk that package is not yet on npm | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
bump-formula-in-homebrew: | ||
name: Bump the formula in homebrew-core repo | ||
if: startsWith(github.event.commits[0].message, 'chore(release):') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
- name: Get version from package.json | ||
id: extractver | ||
run: echo "::set-output name=version::$(npm run get-version --silent)" | ||
- uses: mislav/bump-homebrew-formula-action@v2 | ||
with: | ||
# A PR will be sent to github.com/Homebrew/homebrew-core to update this formula: | ||
formula-name: asyncapi | ||
tag-name: ${{ steps.extractver.outputs.version }} | ||
download-url: https://registry.npmjs.org/@asyncapi/cli/-/cli-${{ steps.extractver.outputs.version }}.tgz #we need to point to npm not github as there is a dist that is not on github | ||
env: | ||
COMMITTER_TOKEN: ${{ secrets.GH_TOKEN_BOT_EVE }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Upload custom assets to GitHub release | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
upload-assets: | ||
name: Generate and upload assets | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
# - os: ubuntu-latest | ||
# npm_script: pack:linux | ||
# dist_folder: deb | ||
# extension: tar.gz #or deb, we do not know yet | ||
# - os: windows-latest | ||
# npm_script: pack:windows | ||
# dist_folder: win | ||
# extension: exe | ||
- os: macos-latest | ||
npm_script: pack:macos | ||
dist_folder: macos | ||
extension: pkg | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
# target branch of release. More info https://docs.github.com/en/rest/reference/repos#releases | ||
# in case release is created from release branch then we need to checkout from given branch | ||
# if @semantic-release/github is used to publish, the minimum version is 7.2.0 for proper working | ||
ref: ${{ github.event.release.target_commitish }} | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
- name: Get version from package.json | ||
id: extractver | ||
run: echo "::set-output name=version::$(npm run get-version --silent)" | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Assets generation | ||
run: npm run ${{ matrix.npm_script }} | ||
- name: Update release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: dist/${{ matrix.dist_folder }}/asyncapi.${{ matrix.extension }} | ||
tag_name: ${{ steps.extractver.outputs.version }} |
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
Oops, something went wrong.