This action attaches a file to an existing Github release
Required Github token to use for creating the release
Required Name of the file to attach to the release
Required URL to use for uploading artifacts to the release
uses: mobileposse/github-attach-release-action@v1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
filename: [some_filename]
upload_url: https://uploads.github.com/repos/[org]/[project]/releases/[release id]/assets{?name,label}
Compile a version of index.js
that includes all dependencies
npx ncc build dist/index.js -o lib
INPUT_REPO_TOKEN='your token here' GITHUB_REPOSITORY='org/repo' INPUT_FILENAME=[filename] INPUT_UPLOAD_URL=[upload_url] INPUT_FILENAME=[filename] node lib/index.js