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

Automated submission of OPAM package on release #562

Merged
merged 2 commits into from
Aug 17, 2023

Conversation

maximedenes
Copy link
Member

No description provided.

@maximedenes maximedenes changed the title wip [wip] automate opam releases for server Aug 8, 2023
@gares
Copy link
Member

gares commented Aug 8, 2023

This is what I do for coq-elpi, FTR:

release:
	TAG=`git tag --sort=-v:refname|head -1`;\
	echo "Publishing tag $$TAG in suite $(OPAM_SUITE)";\
	echo "Hit ^C to stop, or type options (eg -n fro dry run) and return to continue:";\
	read OPTS;\
	opam-publish --tag=$$TAG --packages-directory=$(OPAM_SUITE)/packages \
		--repo=coq/opam-coq-archive -v $${TAG##v} $$OPTS \
		https://github.com/LPCIC/coq-elpi/releases/download/$$TAG/coq-elpi-$${TAG##v}.tar.gz

@gares
Copy link
Member

gares commented Aug 8, 2023

I do upload by hand the tarball, since the one generated by github uses the gzip options of git which are going to change and invalidate the sha, while assets do not change hash.
I did not have the time to automate that using GH APIs, but should be doable.

@gares
Copy link
Member

gares commented Aug 8, 2023

Note that you also want to remove the v from the tag name

@maximedenes maximedenes changed the title [wip] automate opam releases for server Automated submission of OPAM package on release Aug 11, 2023
@maximedenes maximedenes marked this pull request as ready for review August 11, 2023 13:42
@maximedenes maximedenes force-pushed the release-opam-publish branch 3 times, most recently from 683ba28 to 4efcb13 Compare August 11, 2023 15:48
@gares
Copy link
Member

gares commented Aug 12, 2023

I do upload by hand the tarball, since the one generated by github uses the gzip options of git which are going to change and invalidate the sha, while assets do not change hash. I did not have the time to automate that using GH APIs, but should be doable.

@maximedenes did you address this problem?

@maximedenes
Copy link
Member Author

Yes, in #567.

For compatibility with the Coq Platform.
@maximedenes maximedenes merged commit 2b4a1be into main Aug 17, 2023
9 checks passed
@maximedenes maximedenes deleted the release-opam-publish branch August 17, 2023 15:12
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