Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .github/workflows/create-release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -288,40 +288,3 @@ jobs:
*-parachain-runtime/*-parachain-srtool-digest.json
*-parachain-runtime/*-parachain-runtime.compact.compressed.wasm
litentry-collator/*

## update the image version at onfinality ##
update-onfinality-image:
runs-on: ubuntu-latest
needs:
- create-release-draft
if: ${{ github.event.inputs.release_client == 'true' }}
steps:
- name: Update litmus image version
uses: "OnFinality-io/action-onf-release@v1"
continue-on-error: true
with:
# These keys should be in your GitHub secrets
# https://documentation.onfinality.io/support/onfinality-cli-tool-and-access-keys
onf-access-key: ${{ secrets.ONF_ACCESS_KEY }}
onf-secret-key: ${{ secrets.ONF_SECRET_KEY }}
onf-workspace-id: ${{ secrets.ONF_WORKSPACE_ID }}
onf-network-key: ${{ secrets.ONF_LITMUS_NETWORK_KEY }}
# Add a new image version to network spec
onf-sub-command: image
onf-action: add
image-version: ${{ env.RELEASE_TAG }}

- name: Update litentry image version
uses: "OnFinality-io/action-onf-release@v1"
continue-on-error: true
with:
# These keys should be in your GitHub secrets
# https://documentation.onfinality.io/support/onfinality-cli-tool-and-access-keys
onf-access-key: ${{ secrets.ONF_ACCESS_KEY }}
onf-secret-key: ${{ secrets.ONF_SECRET_KEY }}
onf-workspace-id: ${{ secrets.ONF_WORKSPACE_ID }}
onf-network-key: ${{ secrets.ONF_LITENTRY_NETWORK_KEY }}
# Add a new image version to network spec
onf-sub-command: image
onf-action: add
image-version: ${{ env.RELEASE_TAG }}
52 changes: 52 additions & 0 deletions .github/workflows/release-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: 'Release bot'
on:
release:
types: [released]

jobs:
release-bot:
runs-on: ubuntu-latest
# this means the release contains a new docker image (thus a new client)
if: contains(github.event.release.body, 'docker')
steps:
- name: Post discord message
env:
DISCORD_WEBHOOK: ${{ secrets.RELEASE_BOT_DISCORD_WEBHOOK }}
uses: Ilshidur/[email protected]
continue-on-error: true
with:
args: |
Hi @everyone,
🚀 A new client release has been build: https://github.com/litentry/litentry-parachain/releases/tag/${{ github.event.release.tag_name }}
✨ Please update the client using the docker image litentry/litentry-parachain:${{ github.event.release.tag_name }}

- name: Update litmus image version
uses: "OnFinality-io/action-onf-release@v1"
continue-on-error: true
with:
# These keys should be in your GitHub secrets
# https://documentation.onfinality.io/support/onfinality-cli-tool-and-access-keys
onf-access-key: ${{ secrets.ONF_ACCESS_KEY }}
onf-secret-key: ${{ secrets.ONF_SECRET_KEY }}
onf-workspace-id: ${{ secrets.ONF_WORKSPACE_ID }}
onf-network-key: litmus-onfinality-key
# Add a new image version to network spec
onf-sub-command: image
onf-action: add
image-version: ${{ github.event.release.tag_name }}

- name: Update litentry image version
uses: "OnFinality-io/action-onf-release@v1"
continue-on-error: true
with:
# These keys should be in your GitHub secrets
# https://documentation.onfinality.io/support/onfinality-cli-tool-and-access-keys
onf-access-key: ${{ secrets.ONF_ACCESS_KEY }}
onf-secret-key: ${{ secrets.ONF_SECRET_KEY }}
onf-workspace-id: ${{ secrets.ONF_WORKSPACE_ID }}
onf-network-key: litentry
# Add a new image version to network spec
onf-sub-command: image
onf-action: add
image-version: ${{ github.event.release.tag_name }}