Skip to content

Commit

Permalink
Merge branch 'main' into mantrachain/govulncheck
Browse files Browse the repository at this point in the history
  • Loading branch information
mantrachain-support authored Sep 11, 2024
2 parents 071c40f + 836207f commit 99d32e5
Show file tree
Hide file tree
Showing 76 changed files with 482 additions and 30,053 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
go: [stable]
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
name: lint
runs-on: ${{ matrix.os }}
steps:
Expand Down
74 changes: 27 additions & 47 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,35 @@
# This workflow is useful if you want to automate the process of:
#
# a) Creating a new prelease when you push a new tag with a "v" prefix (version).
#
# This type of prerelease is meant to be used for production: alpha, beta, rc, etc. types of releases.
# After the prerelease is created, you need to make your changes on the release page at the relevant
# Github page and publish your release.
#
# b) Creating/updating the "latest" prerelease when you push to your default branch.
#
# This type of prelease is useful to make your bleeding-edge binaries available to advanced users.
#
# The workflow will not run if there is no tag pushed with a "v" prefix and no change pushed to your
# default branch.
on: push
# This workflow creates a release using goreleaser
# via the 'make release' command.

name: Create release

on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
inputs:
release_tag:
description: "The desired tag for the release (e.g. v0.1.0)."
required: true

permissions:
contents: write

jobs:
might_release:
runs-on: ubuntu-latest
release:
name: Create release
runs-on: chain-runner
steps:
- name: Checkout
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Prepare Release Variables
id: vars
uses: ignite/cli/actions/release/vars@main

- name: Issue Release Assets
uses: ignite/cli/actions/cli@main
if: ${{ steps.vars.outputs.should_release == 'true' }}
with:
args: chain build --release --release.prefix ${{ steps.vars.outputs.tarball_prefix }} -t linux:amd64 -t darwin:amd64 -t darwin:arm64 -y
env:
DO_NOT_TRACK: 1

- name: Delete the "latest" Release
uses: dev-drprasad/[email protected]
if: ${{ steps.vars.outputs.is_release_type_latest == 'true' }}
with:
tag_name: ${{ steps.vars.outputs.tag_name }}
delete_release: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish the Release
uses: softprops/action-gh-release@v2
if: ${{ steps.vars.outputs.should_release == 'true' }}
with:
tag_name: ${{ steps.vars.outputs.tag_name }}
files: release/*
prerelease: true
ref: ${{ github.event.inputs.release_tag || github.ref }}
- name: Make release
run: |
make release
env:
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ linters:
- durationcheck
- errcheck
- errname
- exportloopref
- copyloopvar
- fatcontext
- forcetypeassert
- gci
Expand Down
Loading

0 comments on commit 99d32e5

Please sign in to comment.