Skip to content

Changed

Changed #248

Workflow file for this run

name: "Main"
on:
pull_request:
push:
paths-ignore:
- "README.md"
jobs:
build-test:
runs-on: ubuntu-latest
name: Build test
steps:
- uses: actions/checkout@v2
- run: |
npm install
npx @dappnode/dappnodesdk build --skip_save
release:
name: Release
runs-on: ubuntu-latest
needs: build-test
steps:
- uses: actions/checkout@v2
- name: Publish
id: publish
run: |
npx @dappnode/dappnodesdk publish patch --dappnode_team_preset | tee /tmp/publish.log
ipfs_hash=$(grep -oP 'Release hash : \K/ipfs/\w+' /tmp/publish.log)
echo "ipfs_hash=$ipfs_hash" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEVELOPER_ADDRESS: "0x7305356ad936A06c4ea5DF45AD5E5C3ff9Db818E"
- name: Send message to Zulip
uses: zulip/github-actions-zulip/send-message@v1
with:
api-key: ${{ secrets.ZULIP_API_KEY }}
email: ${{ secrets.ZULIP_EMAIL }}
organization-url: "https://hopr.zulipchat.com"
type: "stream"
to: "Releases"
topic: "main"
content: |
A new hoprd dAppNode package version is available.
- IPFS Hash: ${{ steps.publish.outputs.ipfs_hash }}
Access to your dAppNode and check for the updates