GithubHelp home page GithubHelp logo

Comments (10)

meeDamian avatar meeDamian commented on June 12, 2024 1

Hey @TomBrien, I removed the deprecation, because the official alternative was just way to cumbersome :/. That being said I just made assets override possible with v2.0.1, if you haven't switched to @majkrzak's one in the meantime, please do let me know how it works for you :).

from github-release.

majkrzak avatar majkrzak commented on June 12, 2024

I've recreated the action by myself
https://github.com/majkrzak/create-release

from github-release.

meeDamian avatar meeDamian commented on June 12, 2024

If I understand correctly, you have a latest release that you want to update with each new release - is that correct?

I don't think I've seen that pattern done on Github Releases before, is that a common thing?

from github-release.

majkrzak avatar majkrzak commented on June 12, 2024

Yes, that's my case. I'm building the preview of the LaTeX paper when pushed to the master and publish it as the "Latest draft" preview release. Hadn't saw this approach before and maybe it is not perfect one but it fits my case 😄 Anyway the issue is that allow_override: true generally does not let you probably override more than body

from github-release.

meeDamian avatar meeDamian commented on June 12, 2024

It should allow you to override everything except assets and tag, as it's the main identifier.

I actually thought about asset override, but figured that if upload of an asset with the same name is attempted more than once, it's an error, that should be shown to the user. Guess not always 😅.

As for the other things, I'll do more testing to see what's going on.

from github-release.

majkrzak avatar majkrzak commented on June 12, 2024

I'm not saying that my approach is correct. It sounds reasonable that assets are immutable. Maybe only in the "draft" release?

from github-release.

meeDamian avatar meeDamian commented on June 12, 2024

About tag and commitish - docs on them say that commitish is only used if git-tag doesn't exist. If it does exist, it's just used right away instead. And since git-tags and Github Releases, are not exactly the same thing, I'd say force pushing git tags (apart from being "The insane thing" according to git manual 😉), is also out of scope of this action :).

Plus seems like update action does work properly for other fields: https://github.com/meeDamian/github-release/commit/bb75309cfc0b7a207268b4a7a57eb66ef8e85e23/checks

https://github.com/meeDamian/github-release/releases/tag/v0.0.0-test-update

And I still have to think about overriding assets 🤔.

from github-release.

meeDamian avatar meeDamian commented on June 12, 2024

Please use https://github.com/actions/create-release and https://github.com/actions/upload-release-asset now instead.

from github-release.

TomBrien avatar TomBrien commented on June 12, 2024

Please use https://github.com/actions/create-release and https://github.com/actions/upload-release-asset now instead.

Does this comment still apply? I see that the deprecation notice was removed a few days ago, and I agree with the new note! Problem with using actions/create-release and actions/upload-release-asset is it doesn't allow for overwriting releases. I think...

from github-release.

majkrzak avatar majkrzak commented on June 12, 2024

You can always go with mine 🤷‍♂️ https://github.com/majkrzak/create-release

from github-release.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.