-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
.github/workflows/build-electron.yml
Outdated
@@ -20,7 +20,7 @@ jobs: | |||
uses: actions/setup-node@v1 | |||
with: | |||
node-version: ${{ matrix.node-version }} | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whitespace?
echo "PKG_VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV | ||
echo "GIT_REV=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | ||
echo "BUCKET=$([ github.actor == 'natcap' ] \ | ||
&& echo 'gs://releases.naturalcapitalproject.org/invest-workbench/' \ | ||
|| echo 'gs://natcap-dev-build-artifacts/invest-workbench/${{ github.actor }}' \ | ||
)" >> $GITHUB_ENV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the same as export PKG_VERSION=$(jq -r .version package.json)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dcdenu4 more/less the same I guess. I think I was following some GHA docs...let me see...https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @davemfish , just a real stickler whitespace comment!
Thanks, @dcdenu4 , all yours. |
This PR adds an Actions step for deploying the electron-builder products (Windows exe installer & Mac DMG) to GCS buckets. Builds on natcap's fork deploy to our releases bucket with an
invest-workbench
prefix. Builds on other forks deploy to natcap-dev-build-artifacts bucket.Note to self: "undraft" this PR after #72 & #73 are merged into
main
.