Skip to content

Commit

Permalink
add .github and update *.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
seedlings-calm committed Feb 17, 2022
1 parent d498d19 commit bf8f022
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Docs build
# This workflow runs when a PR is labeled with `docs`
# This will check if the docs build successfully by running `npm run build`
on:
pull_request:
push:
branches:
- main
- release/*

jobs:
check-docs-build:
name: Check docs build
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
persist-credentials: false
fetch-depth: 0
- uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
docs/*
SUFFIX_FILTER: |
.md
- name: Install dependencies and build docs 🧱
run: |
make build-docs
27 changes: 27 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: goreleaser

on:
push:
tags:
- "v*.*.*"
jobs:
goreleaser:
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/[email protected]
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: release dry run
run: make release-dry-run
- name: setup release environment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |-
echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env
- name: release publish
run: make release
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
*.swm
*.swn
.vscode
.goreleaser.yml
.release-env

# IDE
.idea/
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ docs-rely:
@echo "install vuepress rely ..."
@cd docs/ && sudo cnpm i

docs-build:
build-docs:
@echo "vuepress build ..."
@cd docs/ && ./deploy.sh

Expand Down Expand Up @@ -299,7 +299,7 @@ release-dry-run:
-v ${GOPATH}/pkg:/go/pkg \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/troian/golang-cross:${GOLANG_CROSS_VERSION} \
--rm-dist --skip-validate --snapshot
--skip-validate --snapshot

release:
@if [ ! -f ".release-env" ]; then \
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
<a href="https://github.com/oracleNetworkProtocol/plugchain/issues">
<img alt="GitHub issues" src="https://img.shields.io/github/issues/oracleNetworkProtocol/plugchain">
</a>
<img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/Plugchainclub?style=plastic">
<a href="https://twitter.com/Plugchainclub">
<img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/Plugchainclub?logoColor=blue&style=social">
</a>
</div>

This repository hosts `plugchain`, the implementation of the Plug Chain based on the [Cosmos SDK 0.42.4](https://github.com/cosmos/cosmos-sdk).
Expand Down

0 comments on commit bf8f022

Please sign in to comment.