Skip to content

Commit d53e245

Browse files
arijitADnootRyRy79261dutterbutteredwardmack
authored
chore(release): release v0.4.0 (#1513)
* feat: cmd: implement import-runtime subcommand (#1483) * fix(lib/crypto/ed25519): update ed25519 to use go-schnorrkel bip39 derivation (#1488) * fix(state) : Update StorageState to load storage from database. (#1486) * fix(dot/state): fix usage of trie.Snapshot (#1489) * fix(dot/state,dot/network): improve memory usage when syncing (#1491) * fix(dot/network): update notificationsProtocol handshakeData to sync.Map (#1492) * remove log (#1493) * feat(dot/network): request block justifications when near head (#1499) * chore(cmd): rename genesis-raw flag and files to genesis, allow raw and human-readable genesis to be passed to it (#1500) * refactor: docs: Docs Overhaul (#1438) * Beginning new docs * Theming set up * General layouts n links sorted * Cleaned up * Updated Commandline * Cleaned a bit * Minor cleaning * Removed todo * Config page * Connect to Polkadotjs * Fixed dev resources * New categories sorted * Updated permalink * Corrected contributor doc * Removed unused partials * Tidying * Removed offical nodes page * Amended with feed back * Resolved a majority of feedback * Ammeded workflows * Feedback * Added diagram * Recent feedback * Test package content * Removed comment * Debugging page * Block production expansion * Typos * Host spec link Co-authored-by: noot <[email protected]> * chore(codeowners): update codeowners file (#1505) * fix: cmd/gossamer: Generate random name if --name flag not set (#1506) * generate random name if --name flag not set * update tests with name flag to handle random names * update tests that reference name cfg * chore(release): Automated release using semantic-release. (#1503) * feat: dot/telemetry: Implement basic telemetry connection (#1497) * implement telemetry connection server * add telemetry for import block * setup telemetry to use node name from Global config * init telemetry connections based on genesis.json values * fix error message formatting * add tests for telemetry * implement no-telemetry cli flag * fix typos * cleanup error check * create TelemetryEndpoint struct * created connection data struct to hold connection data * make TelemetryEndpoints a pointer reference * add tests for interfaceToTelemetryEndpoint * update test to fix random name * fix: fix edit link (#1507) * chore(readme): Fix broken image link (#1509) Co-authored-by: Arijit Das <[email protected]> * fix(dot/network): fix justification request at head logic (#1510) * feat(dot/network): implement persistent peers functionality (#1512) * chore(release): Update name in package.json. (#1514) * Update package.json. * Disable package publish to npm. * Add support to skip a release. * feat(dot/network): Add cache for network message. (#1511) * Add cache for network message. * chore(release): Fix Deepsource error on development branch. (#1516) * Fix Deepsource error. * Fix lint issues. Co-authored-by: noot <[email protected]> Co-authored-by: Ryan Noble <[email protected]> Co-authored-by: Dustin Brickwood <[email protected]> Co-authored-by: Edward Mack <[email protected]>
1 parent b8c4dd7 commit d53e245

File tree

189 files changed

+3478
-2015
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+3478
-2015
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# CODEOWNERS: https://help.github.com/articles/about-codeowners/
22

33
# Primary repo maintainers
4-
* @noot @arijitAD @edwardmack @RyRy79261
4+
* @noot @arijitAD @edwardmack

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ $ git remote -v (you should see myrepo and gossamer in the list of remotes)
4444

4545
To start, check out our open issues. We recommend starting with an [issue labeled `Good First Issue`](https://github.com/ChainSafe/gossamer/issues?q=is%3Aopen+is%3Aissue+label%3A%22Good+First+Issue%22). Leave a comment to let us know that you would like to work on it.
4646

47-
Another option is to improve gossamer where you see fit based on your evaluation of our code. In order to best faciliate collabration, please create an issue before you start working on it.
47+
Another option is to improve gossamer where you see fit based on your evaluation of our code. In order to best faciliate collaboration, please create an issue before you start working on it.
4848

4949
**6. Make improvements to the code.**
5050

.github/workflows/docs.yml

Lines changed: 13 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,21 @@
1-
name: docs
2-
1+
name: Publish docs via GitHub Pages
32
on:
43
push:
54
branches:
65
- development
76

8-
env:
9-
RUBY_VERSION: 2.7
10-
BUNDLE_GEMFILE: docs/Gemfile
11-
127
jobs:
13-
deploy_docs:
14-
runs-on: 'ubuntu-latest'
8+
build:
9+
name: Deploy docs
10+
runs-on: ubuntu-latest
1511
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-ruby@v1
18-
with:
19-
ruby-version: ${{ env.RUBY_VERSION }}
20-
- name: Setup cache for Bundler
21-
id: cache
22-
uses: actions/cache@v2
23-
with:
24-
path: vendor/bundle
25-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
26-
restore-keys: |
27-
${{ runner.os }}-gems-
28-
- name: Set up dependencies
29-
run: |
30-
bundle install --path=vendor/bundle --jobs 4 --retry 3
31-
bundle clean
32-
- name: Clone target branch
33-
run: |
34-
REMOTE_BRANCH="${REMOTE_BRANCH:-gh-pages}"
35-
REMOTE_REPO="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
36-
echo "Publishing to ${GITHUB_REPOSITORY} on branch ${REMOTE_BRANCH}"
37-
rm -rf docs/_site/
38-
git clone --depth=1 --branch="${REMOTE_BRANCH}" --single-branch --no-checkout \
39-
"${REMOTE_REPO}" docs/_site/
40-
- name: Build site
41-
run: bundle exec jekyll build --source docs --destination docs/_site --verbose --trace
12+
- name: Checkout main
13+
uses: actions/checkout@v2
14+
15+
- name: Deploy docs
16+
uses: mhausenblas/mkdocs-deploy-gh-pages@master
4217
env:
43-
# For jekyll-github-metadata
44-
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
- name: Deploy to GitHub Pages
46-
run: |
47-
SOURCE_COMMIT="$(git log -1 --pretty="%an: %B" "$GITHUB_SHA")"
48-
pushd docs/_site &>/dev/null
49-
: > .nojekyll
50-
git add --all
51-
git -c user.name="${GITHUB_ACTOR}" -c user.email="${GITHUB_ACTOR}@users.noreply.github.com" \
52-
commit --quiet \
53-
--message "Deploy docs from ${GITHUB_SHA}" \
54-
--message "$SOURCE_COMMIT"
55-
git push
56-
popd &>/dev/null
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
CUSTOM_DOMAIN: gossamer.chainsafe.io
20+
CONFIG_FILE: docs/mkdocs.yml
21+
EXTRA_PACKAGES: build-base

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [main, development]
5+
6+
jobs:
7+
release:
8+
if: "!contains(github.event.head_commit.message, 'skip ci')"
9+
name: Release
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 12
20+
- name: Install dependencies
21+
run: npm install @semantic-release/changelog @semantic-release/git @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/exec @semantic-release/git semantic-release/release-notes-generator
22+
- name: Release
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
run: npx semantic-release

.releaserc

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"branches": ["+([0-9])?(.{+([0-9]),x}).x", "main", "next"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
[
7+
"@semantic-release/changelog",
8+
{
9+
"changelogFile": "CHANGELOG.md",
10+
"changelogTitle": "# Semantic Versioning Changelog"
11+
}
12+
],
13+
[
14+
"@semantic-release/git",
15+
{
16+
"assets": [
17+
"CHANGELOG.md"
18+
]
19+
}
20+
],
21+
[
22+
"@semantic-release/github",
23+
{
24+
"assets": [
25+
{
26+
"path": "dist/**"
27+
}
28+
]
29+
}
30+
]
31+
]
32+
}

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ build-debug:
8989

9090
## init: Initialize gossamer using the default genesis and toml configuration files
9191
init:
92-
./bin/gossamer --key alice init --genesis-raw chain/gssmr/genesis-raw.json --force
92+
./bin/gossamer --key alice init --genesis chain/gssmr/genesis.json --force
9393

9494
## init-repo: Set initial configuration for the repo
9595
init-repo:
@@ -126,4 +126,4 @@ gossamer: clean
126126

127127
## install: install the gossamer binary in $GOPATH/bin
128128
install:
129-
GOBIN=$(GOPATH)/bin go run scripts/ci.go install
129+
GOBIN=$(GOPATH)/bin go run scripts/ci.go install

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div align="center">
2-
<img alt="Gossamer logo" src="/docs/assets/img/gossamer_banner.png" width="600" />
2+
<img alt="Gossamer logo" src="/docs/docs/assets/img/gossamer_banner.png" width="600" />
33
</div>
44
<div align="center">
55
<a href="https://www.gnu.org/licenses/gpl-3.0">

chain/gssmr/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ grandpa = ""
1414
sync = ""
1515

1616
[init]
17-
genesis-raw = "./chain/gssmr/genesis-raw.json"
17+
genesis = "./chain/gssmr/genesis.json"
1818

1919
[account]
2020
key = ""

chain/gssmr/defaults.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ var (
4141

4242
// InitConfig
4343

44-
// DefaultGenesisRaw Default genesis configuration path
45-
DefaultGenesisRaw = string("./chain/gssmr/genesis-raw.json")
44+
// DefaultGenesis is the default genesis configuration path
45+
DefaultGenesis = string("./chain/gssmr/genesis.json")
4646

4747
// AccountConfig
4848

chain/gssmr/genesis-raw.json

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)