Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Build: Implements GH API to upload binaries #737

Merged
merged 1 commit into from
Mar 7, 2015
Merged

Conversation

am11
Copy link
Contributor

@am11 am11 commented Mar 5, 2015

This is first in the series of overhauling build steps. Find the related discussion at: #712.

The public access token can be generated from: https://github.com/settings/applications#personal-access-tokens.

Usage:

Anyone with write-access to sass/node-sass can run:

node scripts/upload --auth MyGitHubOAuthToken

This will upload the binary file to the latest release (for instance, current is v2.0.1).

To upload the asset to specific release:

node scripts/upload --auth MyGitHubOAuthToken --tag 2.0.0

To upload the asset from a custom paths:

node scripts/upload --auth MyGitHubOAuthToken --path ~/docs/my_emails/someoneITrust/blah.node

//cc @nschonni, @xzyfer

@am11 am11 added the Dev - WIP label Mar 5, 2015
@am11 am11 force-pushed the master branch 3 times, most recently from 001174a to 78f83ac Compare March 7, 2015 15:38
@am11
Copy link
Contributor Author

am11 commented Mar 7, 2015

Thanks @izuzak for help with curl connect (via email). That helped me figuring out how to pass the token and fetch the upload URL!

@callicles, based on the comment on SO FYI. Your answer really helped! 😃

@am11
Copy link
Contributor Author

am11 commented Mar 7, 2015

@nschonni, @xzyfer, we can upload the asset to existing release by editing the release.
This script will be useful when were are text-only/CLI-mode in headless CentOS for instance, to build binaries. We don't need to scp to host OS to drag drop in browser. 😎

am11 added a commit that referenced this pull request Mar 7, 2015
Build: Implements GH API to upload binaries
@am11 am11 merged commit beffe92 into sass:master Mar 7, 2015
@xzyfer
Copy link
Contributor

xzyfer commented Mar 8, 2015

👍

@callicles
Copy link

@am11 glad it could be help full :)

@nschonni
Copy link
Contributor

nschonni commented Mar 8, 2015

May seem silly, but I'd almost think this should live in the node-sass-binaries repo

jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this pull request Apr 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants