Skip to content

fix: jsonrpc server id provider (#68) #16

fix: jsonrpc server id provider (#68)

fix: jsonrpc server id provider (#68) #16

Workflow file for this run

name: release
on:
workflow_dispatch:
push:
tags: ["*"]
env:
ECR_REPO: public.ecr.aws/altlayer/subway
GHCR_REPO: ghcr.io/${{ github.repository_owner }}/subway
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: login to ecr
uses: docker/login-action@v3
with:
registry: public.ecr.aws
username: ${{ secrets.ECR_ACCESS_KEY_ID }}
password: ${{ secrets.ECR_ACCESS_KEY }}
- name: login to ghcr
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.GHCR_REPO }}
${{ env.ECR_REPO }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
type=sha
type=sha,format=long
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
make-release:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: build changelog
id: changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
configuration: .github/changelog-builder.json
ignorePreReleases: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: make release
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body: |
${{ steps.changelog.outputs.changelog }}
allowUpdates: true
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') || contains(github.ref, 'pre') }}
draft: true