This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3287 from comit-network/release/cnd/0.9.0
- Loading branch information
Showing
442 changed files
with
36,654 additions
and
26,148 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
name: Create release archive | ||
description: Creates a tar archive for a release binary | ||
inputs: | ||
version: | ||
description: 'The version of the binary' | ||
required: true | ||
binary: | ||
description: 'The name of the binary to pack into the archive' | ||
required: true | ||
outputs: | ||
archive: | ||
description: 'The name of the archive' | ||
value: ${{ steps.create-archive-name.outputs.archive }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- id: create-archive-name | ||
shell: python # Use python to have a prettier name for the archive on Windows. | ||
run: | | ||
import platform | ||
os_info = platform.uname() | ||
archive_name=f'${{ inputs.binary }}_${{ inputs.version }}_{os_info.system}_{os_info.machine}' | ||
print(f'::set-output name=archive::{archive_name}') | ||
- name: Make archive | ||
shell: bash | ||
run: tar -C ./target/release --create --file=${{ steps.create-archive-name.outputs.archive }} ${{ inputs.binary }} |
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,23 @@ | ||
name: Trim front | ||
description: Trims a string by a given prefix | ||
inputs: | ||
string: | ||
description: 'The string to be trimmed' | ||
required: true | ||
prefix: | ||
description: 'The prefix that should be removed from the string' | ||
required: true | ||
outputs: | ||
trimmed: | ||
description: 'The remaining part of the string' | ||
value: ${{ steps.trim-front.outputs.trimmed }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- id: trim-front | ||
shell: bash | ||
run: | | ||
FULL_STRING="${{ inputs.string }}" | ||
TRIMMED=${FULL_STRING#${{ inputs.prefix }}} | ||
echo "::set-output name=trimmed::$TRIMMED" |
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,36 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: cargo | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "00:00" | ||
timezone: Australia/Brisbane | ||
labels: | ||
- dependencies | ||
allow: | ||
- dependency-type: direct | ||
ignore: | ||
- dependency-name: bytes | ||
versions: | ||
- ">= 0" | ||
- dependency-name: libsqlite3-sys | ||
versions: | ||
- ">= 0" | ||
- package-ecosystem: npm | ||
directory: "/tests" | ||
schedule: | ||
interval: daily | ||
time: "00:00" | ||
timezone: Australia/Brisbane | ||
labels: | ||
- dependencies | ||
allow: | ||
- dependency-type: direct | ||
ignore: | ||
- dependency-name: ethereumjs-tx | ||
versions: | ||
- "> 1.3.7" | ||
- dependency-name: web3 | ||
versions: | ||
- "> 1.0.0-beta.55" |
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
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,36 @@ | ||
name: "Create cnd GitHub release" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
types: | ||
- closed | ||
|
||
jobs: | ||
create_gh_release: | ||
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/cnd/') # only merged release branches must trigger this | ||
name: Create cnd GitHub release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources to access local actions | ||
uses: actions/checkout@v2 | ||
|
||
- name: Extract version from branch name | ||
id: extract-version | ||
uses: ./.github/actions/trim-front | ||
with: | ||
string: ${{ github.event.pull_request.head.ref }} | ||
prefix: release/cnd/ | ||
|
||
- name: Create Release | ||
id: create-release | ||
uses: thomaseizinger/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOTTY_GITHUB_TOKEN }} | ||
with: | ||
target_commitish: ${{ github.event.pull_request.merge_commit_sha }} | ||
tag_name: cnd-${{ steps.extract-version.outputs.trimmed }} | ||
name: cnd-${{ steps.extract-version.outputs.trimmed }} | ||
draft: false | ||
prerelease: false |
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,36 @@ | ||
name: "Create nectar GitHub release" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
types: | ||
- closed | ||
|
||
jobs: | ||
create_gh_release: | ||
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/nectar/') # only merged release branches must trigger this | ||
name: Create nectar GitHub release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources to access local actions | ||
uses: actions/checkout@v2 | ||
|
||
- name: Extract version from branch name | ||
id: extract-version | ||
uses: ./.github/actions/trim-front | ||
with: | ||
string: ${{ github.event.pull_request.head.ref }} | ||
prefix: release/nectar/ | ||
|
||
- name: Create Release | ||
id: create-release | ||
uses: thomaseizinger/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOTTY_GITHUB_TOKEN }} | ||
with: | ||
target_commitish: ${{ github.event.pull_request.merge_commit_sha }} | ||
tag_name: nectar-${{ steps.extract-version.outputs.trimmed }} | ||
name: nectar-${{ steps.extract-version.outputs.trimmed }} | ||
draft: false | ||
prerelease: false |
Oops, something went wrong.