-
-
Notifications
You must be signed in to change notification settings - Fork 158
Release: Add workflow for AUR publishing #161
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
Conversation
4ea6202
to
5a1170a
Compare
Codecov Report
@@ Coverage Diff @@
## master #161 +/- ##
=======================================
Coverage 97.86% 97.86%
=======================================
Files 11 11
Lines 844 844
=======================================
Hits 826 826
Misses 18 18 Continue to review full report at Codecov.
|
9306eb1
to
80366ed
Compare
f6addb9
to
54b21b0
Compare
2f72d99
to
18f5e80
Compare
I think this should be ready now, I was able to publish a sample version to the AUR - the only thing which might not work would be the part to extract the tag. |
18f5e80
to
6623e79
Compare
.github/workflows/aur.yml
Outdated
@@ -0,0 +1,42 @@ | |||
name: aur |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think if we move this job to the release workflow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should belong there you are very right :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move it to the release workflow and rename it to release-aur
.
.github/workflows/aur.yml
Outdated
# see: https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167#M1027 | ||
- name: Get the version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use this solution instead of the separate step?
GIT_TAG=$(git describe --tags `git rev-list --tags --max-count=1` | sed "s/v//")
I already use this solution in the release workflow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tried that but the problem is we don't check out the dotenv-linter itself so we don't have access to it's git repository - we only check out the dotenv-linter-bin
repository from the AUR.
That's why I went with this solution.
Of course we could check out the dotenv-linter itself, but that would cost a bit of performance.
Do you think it would be worth it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for explaining me. I think no. Let's leave as is.
.github/workflows/aur.yml
Outdated
git status && \ | ||
git diff && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these commands needed for debug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've decided to let them in for the first one or two releases to see immediately what went wrong if some error occurs and have easier debugging if you think this is useless noise and shouldn't be there until we have a problem I can remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, let's leave as is.
@mstruebing 👋Thank you for your contribution! 🚀Please look at the comments. |
ca25ab2
to
ac47433
Compare
ac47433
to
c7ebc82
Compare
It's rebased now and moved to |
@mstruebing Thanks a lot! Excellent work! 🚀 |
I prepared a bit.
TODO:
closes #116