Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moving to maintained action and splitting up linux github actions yml and #131

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

shimwell
Copy link
Member

The existing Github Actions scripts make use of upload-release-asset which is now no longer maintained and suggests using action-gh-release instead.

So I think it might be time to change the GitHub Action used to upload the compressed files to the release.

Additionally as mentioned in the call today the combined action for Ubuntu and Debian upload was getting a bit large so I've split those two into separate yml files which.

The github actions triggered by a test release on my fork all worked as the failing option Ubuntu 21.04 and Cubit 2021.4 has been removed from the matrix.
https://github.com/shimwell/Cubit-plugin/actions

@gonuke
Copy link
Member

gonuke commented Dec 17, 2021

Is the combination of Ubuntu 21.04 and Cubit 2021.4 known to fail before now?

Copy link
Member

@gonuke gonuke left a comment

Choose a reason for hiding this comment

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

Thanks for the work here @shimwell - I wonder how to deal with third party actions becoming unsupported in the long term?

uses: svenstaro/upload-release-action@v2
- name: Upload binaries into the release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Copy link
Member

Choose a reason for hiding this comment

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

Is there a substantive reason to change the condition? Why not put the conditional first?

Copy link
Member Author

@shimwell shimwell Dec 17, 2021

Choose a reason for hiding this comment

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

That is just how the example suggested to do it. I think that the action handles the condition instead of the yml
https://github.com/softprops/action-gh-release

- os: debian
os_version: '10.10' # using a 'string' here as the 0 gets rounded away otherwise
cubit: 2021.11
- os: ubuntu
Copy link
Member

Choose a reason for hiding this comment

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

this has now excluded the U21.04 + C2021.4 combination - was that failing before?

Copy link
Member Author

@shimwell shimwell Dec 17, 2021

Choose a reason for hiding this comment

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

I think it was not failing before. I can't quite figure out why it is failing now.

Thanks for the work here @shimwell - I wonder how to deal with third party actions becoming unsupported in the long term?

I think the newer replacements are usually easier to use which I guess is part of the reason they become the preferred option. They also tend to offer the same or better functionality. So perhaps upgrading actions won't be much trouble. This action repo was kind enough to recommend a replacement one.

Copy link
Member Author

Choose a reason for hiding this comment

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

this has now excluded the U21.04 + C2021.4 combination - was that failing before?

I don't quite understand why it no longer works but it seems that U21.04 + C2021.4 was working previously. I can manually upload it to the release of that helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants