-
Notifications
You must be signed in to change notification settings - Fork 2
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
Migrate to GitHub actions #31
Conversation
dc03f51
to
474a7ba
Compare
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.
@Alex0jk nice job so far! I would just suggest updating the status badges on the README file and also adding a section talking about the release process, if I understand this workflow correctly a maintainer would need to create a GH release before publishing a new version to Hackage. Am I right?
474a7ba
to
5805f4d
Compare
5805f4d
to
7c1d2c4
Compare
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.
@Alex0jk looks good, please let me know if you need some help setting up the secrets
d260835
to
f1c054a
Compare
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.
@Alex0jk Looks good. Although, we don't have an executable on atomic-write so we don't need many of the steps that you defined in the draft.yml
file. Also, can you give a look at the README.md
? It seems the diagram is not rendering correctly. Thanks!
.github/workflows/README.md
Outdated
```mermaid | ||
graph LR; | ||
event[GH Event]-->|on push|Build; | ||
event-->|tag created|Draft; | ||
Draft-->|create draft release|End; | ||
event-->|release published|Release; | ||
Release-->|upload artifacts to Hackage (release candidate)|End; | ||
Build-->End; | ||
``` |
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.
@Alex0jk It seems this diagram has some kind of error. It cannot be rendered. Can you double check that please?
.github/workflows/draft.yml
Outdated
- uses: addnab/docker-run-action@v3 | ||
with: | ||
image: utdemir/ghc-musl:v24-ghc922 | ||
options: -v ${{ github.workspace }}:/mnt | ||
run: | | ||
cd /mnt | ||
sh build.static.sh | ||
|
||
- name: Change owner before compression | ||
run: sudo chown $USER:$USER atomic-write |
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.
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.
LGTM!
🎉 This PR is included in version 2.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Add basic setup for GitHub actions :
release.yml
anddraft.yml
This is for #30