Skip to content

Commit

Permalink
gh actions update: on tag push create a release (flashbots#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris authored Jun 29, 2022
1 parent b93a9e3 commit c47fa3e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 11 deletions.
11 changes: 7 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
## Description
## 📝 Summary

<!--- A general summary of your changes -->

## Context & references
## ⛱ Motivation and Context

<!--- Why is this change required? What problem does it solve? -->

## Additional comments
## 📚 References

<!-- Any interesting external links to documentation, articles, tweets which add value to the PR -->

---

## I have run these commands
## I have run these commands

* [ ] `make lint`
* [ ] `make test`
Expand Down
28 changes: 23 additions & 5 deletions .github/workflows/releaser.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Docker Auto Releaser
name: Release

on:
push:
tags:
- 'v*.*.*'
- 'v*'

jobs:
releaser:
name: Docker Image Auto Releaser
docker-image:
name: Publish Docker Image
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -35,4 +35,22 @@ jobs:
with:
push: true
tags: flashbots/mev-boost:latest,flashbots/mev-boost:${{ steps.vars.outputs.tag }}
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64


github-release:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
go-version: ^1.18
id: go

- name: Check out code into the Go module directory
- name: Checkout sources
uses: actions/checkout@v2

- name: Run unit tests and generate the coverage report
Expand All @@ -45,7 +45,7 @@ jobs:
go-version: ^1.18
id: go

- name: Check out code into the Go module directory
- name: Checkout sources
uses: actions/checkout@v2

- name: Install revive linter
Expand Down

0 comments on commit c47fa3e

Please sign in to comment.