Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gmh5225 authored Oct 19, 2024
1 parent 9570ece commit 200143a
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Build EIP1559-sender

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: write

on: [push, pull_request]

jobs:

Expand Down Expand Up @@ -48,3 +47,13 @@ jobs:
with:
name: EIP1559-sender-${{ matrix.goos }}-${{ matrix.goarch }}
path: EIP1559-sender-${{ matrix.goos }}-${{ matrix.goarch }}

- name: Release
uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
prerelease: ${{ !startsWith(github.ref, 'refs/tags/v') || contains(github.ref, '-pre') }}
files: EIP1559-sender-${{ matrix.goos }}-${{ matrix.goarch }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 200143a

Please sign in to comment.