Skip to content

Commit

Permalink
Merge pull request #4 from OffchainLabs/release-action
Browse files Browse the repository at this point in the history
switch to full release binaries
  • Loading branch information
kasey authored Jan 14, 2025
2 parents c86852e + 7a428e0 commit 6312a8b
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/main-artifact-refresh.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: main-artifact-refresh
description: "ensures there is always an unclog artifact available, building monthly (less than 90 day retention period) or when PRs merge to main"
name: build-main
description: "automatically build unclog releases"

on:
pull_request:
types:
- closed
schedule:
- cron: "0 0 1 * *" # run first day of month
push:
tags:
- "v*.*.*"

jobs:
refresh-unclog-binary:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build-main
description: "automatically build unclog releases"

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

jobs:
refresh-unclog-binary:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4

- name: build-unclog
uses: ./.github/actions/build-unclog
with:
artifact-name: unclog # This is the 'release' artifact name

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'

- name: Build
shell: bash
run: go build -o unclog -v .

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: unclog
make_latest: "true"
7 changes: 7 additions & 0 deletions log/kasey_inplace-overwrite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Added

- `-output` flag to specify path to write merged changelog output.

### Changed

- Instead of writing the merged changelog to stdout, it will be written to the `-output` flag, which defaults to the path of the previous changelog.
7 changes: 7 additions & 0 deletions log/kasey_release-action.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Added

- Automatically create a release when a version tag is pushed.

### Removed

- Stop building artifacts on pull request merges. Consumers of unclog should use the released binary, which is more stable.

0 comments on commit 6312a8b

Please sign in to comment.