diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 00516b8..bfa7aa0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,6 +13,7 @@ Build: artifacts: paths: - librewolf-*.source.tar.gz + - librewolf-*.source.tar.gz.sha256sum reports: dotenv: variables.env @@ -39,6 +40,11 @@ Release: --header "JOB-TOKEN: $CI_JOB_TOKEN" \ --upload-file librewolf-$VERSION-$RELEASE.source.tar.gz \ "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz" + - | + curl \ + --header "JOB-TOKEN: $CI_JOB_TOKEN" \ + --upload-file librewolf-$VERSION-$RELEASE.source.tar.gz.sha256sum \ + "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz.sha256sum" release: tag_name: "$VERSION-$RELEASE" description: "LibreWolf v$VERSION-$RELEASE" @@ -47,3 +53,6 @@ Release: - name: librewolf-$VERSION-$RELEASE.source.tar.gz link_type: package url: $CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz + - name: librewolf-$VERSION-$RELEASE.source.tar.gz + link_type: other + url: $CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/librewolf-source/$VERSION-$RELEASE/librewolf-$VERSION-$RELEASE.source.tar.gz.sha256sum diff --git a/Makefile b/Makefile index fb6b58b..6150021 100644 --- a/Makefile +++ b/Makefile @@ -73,6 +73,8 @@ librewolf-$(version)-$(release).source$(ext) : $(upstream_filename) ./version ./ rm -f librewolf-$(version)-$(release).source$(ext) $(archive_create) librewolf-$(version)-$(release).source$(ext) librewolf-$(version) touch librewolf-$(version) + sha256sum librewolf-$(version)-$(release).source$(ext) > librewolf-$(version)-$(release).source$(ext).sha256sum + cat librewolf-$(version)-$(release).source$(ext).sha256sum librewolf-$(version) : librewolf-$(version)-$(release).source$(ext) tar xf librewolf-$(version)-$(release).source$(ext) diff --git a/release b/release index 00750ed..b8626c4 100644 --- a/release +++ b/release @@ -1 +1 @@ -3 +4