diff --git a/README.md b/README.md index 2cfd103..8d6c4f2 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,8 @@ jobs: apiKey: ${{ secrets.FLEEK_API_KEY }} - name: Get the output url run: echo "Deploy url is ${{ steps.deploy.outputs.deployUrl }}" + - name: Get the site cid + run: echo "Site cid is ${{ steps.deploy.outputs.siteCid }}" ``` diff --git a/action.yml b/action.yml index f590530..ffa1dff 100644 --- a/action.yml +++ b/action.yml @@ -17,6 +17,8 @@ inputs: outputs: deployUrl: description: 'Website Url to view the API' + siteCid: + description: 'The site CID' runs: using: 'docker' image: 'Dockerfile' diff --git a/entrypoint.sh b/entrypoint.sh index ecc37ee..15b99c4 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -35,3 +35,5 @@ fi echo "$output" deployUrl=$(echo "$output" | grep -Eo 'https://[^ >]+' | head -1) echo "::set-output name=deployUrl::$deployUrl" +siteCid=$(echo "$output" | sed -n 's/^Site cid is \(.*\)$/\1/p') +echo "::set-output name=siteCid::$siteCid"