diff --git a/.github/workflows/release-on-demand.yml b/.github/workflows/release-on-demand.yml new file mode 100644 index 0000000..0d54958 --- /dev/null +++ b/.github/workflows/release-on-demand.yml @@ -0,0 +1,30 @@ +name: "Main" +on: + workflow_dispatch: + +jobs: + build-test: + runs-on: ubuntu-16.04 + name: Build test + if: github.event_name != 'push' + steps: + - name: Checkout + uses: actions/checkout@v2 + - run: docker-compose build + + release: + name: Release + runs-on: ipfs-dev-gateway + if: github.event_name == 'workflow_dispatch' + steps: + - uses: actions/checkout@v2 + - name: Setup node + uses: actions/setup-node@v1 + with: + node-version: "20.x" + - name: Log in to GitHub Container Registry + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + - name: Publish + run: npx @dappnode/dappnodesdk publish patch --github_release --timeout 1h --content_provider=http://10.200.200.7:5001 --eth_provider=https://web3.dappnode.net + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file