Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Deploy build artifacts to GCS #75

Merged
merged 22 commits into from
Jan 12, 2021
Merged

Conversation

davemfish
Copy link
Collaborator

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.

@davemfish davemfish marked this pull request as ready for review January 11, 2021 16:29
@davemfish davemfish added this to the 0.1.0-alpha milestone Jan 11, 2021
@@ -20,7 +20,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespace?

Comment on lines +64 to +69
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
Copy link
Member

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)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@dcdenu4 dcdenu4 left a 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!

@davemfish
Copy link
Collaborator Author

Thanks, @dcdenu4 , all yours.

@dcdenu4 dcdenu4 merged commit 39d4c88 into natcap:main Jan 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants