Skip to content

Commit c47fa3e

Browse files
authored
gh actions update: on tag push create a release (#178)
1 parent b93a9e3 commit c47fa3e

File tree

3 files changed

+32
-11
lines changed

3 files changed

+32
-11
lines changed

.github/pull_request_template.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
## Description
1+
## 📝 Summary
22

3+
<!--- A general summary of your changes -->
34

4-
## Context & references
5+
## ⛱ Motivation and Context
56

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

7-
## Additional comments
9+
## 📚 References
810

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

1013
---
1114

12-
## I have run these commands
15+
## I have run these commands
1316

1417
* [ ] `make lint`
1518
* [ ] `make test`

.github/workflows/releaser.yaml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: Docker Auto Releaser
1+
name: Release
22

33
on:
44
push:
55
tags:
6-
- 'v*.*.*'
6+
- 'v*'
77

88
jobs:
9-
releaser:
10-
name: Docker Image Auto Releaser
9+
docker-image:
10+
name: Publish Docker Image
1111
runs-on: ubuntu-latest
1212

1313
steps:
@@ -35,4 +35,22 @@ jobs:
3535
with:
3636
push: true
3737
tags: flashbots/mev-boost:latest,flashbots/mev-boost:${{ steps.vars.outputs.tag }}
38-
platforms: linux/amd64,linux/arm64
38+
platforms: linux/amd64,linux/arm64
39+
40+
41+
github-release:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Checkout sources
45+
uses: actions/checkout@v2
46+
47+
- name: Create release
48+
id: create_release
49+
uses: actions/create-release@v1
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
52+
with:
53+
tag_name: ${{ github.ref }}
54+
release_name: ${{ github.ref }}
55+
draft: false
56+
prerelease: false

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
go-version: ^1.18
2020
id: go
2121

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

2525
- name: Run unit tests and generate the coverage report
@@ -45,7 +45,7 @@ jobs:
4545
go-version: ^1.18
4646
id: go
4747

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

5151
- name: Install revive linter

0 commit comments

Comments
 (0)