diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 79143aa3a..b0d0c8d92 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -4,9 +4,13 @@ on: pull_request: merge_group: +permissions: + contents: read # for TimonVS/pr-labeler-action to read config file + pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR + jobs: - tidy-pr: - name: Tidy PR + verify-pr: + name: Verify PR if: github.event_name == 'pull_request' permissions: contents: read # for TimonVS/pr-labeler-action to read config file @@ -23,8 +27,6 @@ jobs: configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value - name: Trunk Check uses: trunk-io/trunk-action@v1 - with: - post-annotations: true # only for fork PRs test-builds: if: github.event_name == 'pull_request' @@ -101,7 +103,7 @@ jobs: - run: make test-cover validate-release: - if: github.event_name == 'merge_group' + if: github.event_name == 'merge_group' || github.event_name == 'pull_request' runs-on: ubuntu-latest name: Verify Release Config steps: @@ -126,19 +128,11 @@ jobs: branch: main - name: Check GoReleaser Config - uses: goreleaser/goreleaser-action@v6 - with: - distribution: goreleaser - version: latest - args: check + run: make release-check env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: GoReleaser Dry Run - uses: goreleaser/goreleaser-action@v6 - with: - distribution: goreleaser - version: latest - args: release --snapshot --clean --skip=publish + run: make release-dry env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1e380f590..598ae3d68 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,6 +23,26 @@ jobs: input: proto buf_token: ${{ secrets.BUF_TOKEN }} + container-push: + name: Publish Container Images + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: ghcr.io/onsonr/sonr:latest + docs-push: runs-on: ubuntu-latest name: Publish Docs to onsonr.dev diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed63b3367..23c598f08 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,14 +37,8 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Install Task - uses: arduino/setup-task@v2 - with: - version: 3.x - repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: Run GoReleaser - run: task release + run: make release env: GITHUB_TOKEN: ${{ secrets.GH_RELEASER_TOKEN }} GITHUB_PERSONAL_AUTH_TOKEN: ${{ secrets.GH_RELEASER_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 190a6148f..744720baf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,63 @@ +## Unreleased + +### Feat + +- integrate Trunk CI checks +- simplify devnet and testnet configurations +- add docs and CI workflow for publishing to onsonr.dev +- automate release process using Taskfile and GitHub Actions +- add Reddit release notification + +### Fix + +- pass working directory to goreleaser task +- correct release name template syntax + +### Refactor + +- improve code structure and readability in DID module +- Move devnet configuration to networks/devnet +- move logger interface to appropriate package +- Move network configurations to deploy directory +- update import path for didcrypto package +- remove devcontainer configuration +- simplify release workflow and remove unnecessary Taskfile includes +- improve release process using goreleaser and taskfile +- simplify release workflow using a single task +- improve release naming and environment variable handling +- improve goreleaser archive and nfpms configuration + +## v0.6.1 (2024-12-30) + +### Feat + +- convert highway sink schema to SQLite +- **scopes**: add Web Authentication API documentation +- add install script for Sonr binaries + +### Fix + +- Handle only 500 errors in ErrorHandler +- Return only on 500 errors in error handler +- update sqlc queries to match schema and use SQLite conventions +- Rename DecodeWasmContext to decodeWasmContext +- resolve lint errors in WASMMiddleware function +- prevent automatic version bumps from dependabot +- correct merge workflow to increment patch version + +### Refactor + +- remove outdated scopes +- remove unnecessary seed message +- Update sqlc queries to match schema and sqlite conventions +- move gateway and vault components to new locations +- **scopes**: simplify scopes.json structure +- **scopes**: rename and reorganize scopes +- **api**: remove unused Allocate RPC from Query service +- remove postgresql tasks +- remove unused AI PR body generator step +- simplify Taskfile and remove unused chain configurations + ## v0.6.0 (2024-12-24) ### Feat @@ -22,7 +82,7 @@ - optimize GitHub Actions workflow triggers (#1204) - Move embed -## v0.5.27 (2024-12-16) +## v0.1.6 (2024-12-16) ## v0.5.26 (2024-12-13)