fnkr / github-action-ghr Goto Github PK
View Code? Open in Web Editor NEWGitHub Action to upload build artifacts to GitHub releases.
License: MIT License
GitHub Action to upload build artifacts to GitHub releases.
License: MIT License
I would like to upload the entire directory as one zip file. E.g. dist/package-a should be uploaded as package-a.zip, or perhaps another name I could set in the options.
Is that supported right now? Using the GHR_COMPRESS
and GHR_PATH
results in multiple uploads.
This action creates a release for a given tag, when it doesn’t exist. Would it possible to (have an option to) mark this release as a draft release, i.e. not public?
This is the result of what happens when clicking “Save draft” instead of “Publish Release” when editing a release manually. Other CI providers also provide this option, e.g. appveyor
workflow:
name: test
on:
watch:
types: [started] # does this have something to do with it?
jobs:
download:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: 'refs/tags/1.0' # Explicitly referencing a tag
- name: tasks
run: |
echo ${{ github.ref }} > ref.txt
cat ref.txt # outputs "refs/heads/master"
- name: Release
uses: fnkr/github-action-ghr@v1
# if: startsWith(github.ref, 'refs/tags/') # if I uncomment this the step is skipped
env:
GHR_COMPRESS: zip
GHR_PATH: ref.txt
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@fnkr Please help. I'm new to github actions and don't know how checkout action works.
It is a private repo which I edit only using the Github's online editor. Do I have to create tags locally and then push?
Cannot name secret GITHUB_TOKEN
, or else it gives me the following warning,
Failed to add secret. Name is invalid.
Not sure which permissions are required for creating a personal access token for this.
See: https://developer.github.com/apps/building-oauth-apps/scopes-for-oauth-apps
Hello,
is this "action" multiplatform, so it would run on all platforms supported by GH Actions? (Ubuntu, OSX, Windows)
.zip
as a compression method (for Windows, but common everywhere)?The actual ghr provides -r parameter to provide name of repository make release to.
But this action seems to be using the current repository for which the action is running.
It would be great if you can provide configurable -r parameter also.
I've been looking for a long time for a gh action that can update releases, wipe previous tags, and change release body&title... seems like yours is what I want, but it has the delete tag feature on main branch, and the other features I want on the options one...
thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.