mirror of
https://codeberg.org/scip/Config-General.git
synced 2025-12-17 12:41:07 +01:00
Compare commits
4 Commits
codeberg
...
9a3e72d7d1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a3e72d7d1 | ||
| d35ece0279 | |||
| d6dae42209 | |||
|
|
14e55606ac |
18
.woodpecker/build.yaml
Normal file
18
.woodpecker/build.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- image: perl:5.22.4-stretch
|
||||||
|
- image: perl:5.36.0-slim-bullseye
|
||||||
|
- image: perl:5.38.0-slim-bookworm
|
||||||
|
- image: perl:5.40.0-slim-bookworm
|
||||||
|
- image: perl:5.42.0-slim-bookworm
|
||||||
|
- image: perl:5.43.5-slim-bookworm
|
||||||
|
|
||||||
|
steps:
|
||||||
|
test:
|
||||||
|
when:
|
||||||
|
event: [push]
|
||||||
|
image: ${image}
|
||||||
|
commands:
|
||||||
|
- perl Makefile.PL
|
||||||
|
- make
|
||||||
|
- make test
|
||||||
54
.woodpecker/release.sh
Executable file
54
.woodpecker/release.sh
Executable file
@@ -0,0 +1,54 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This is my own simple codeberg generic releaser. It takes to
|
||||||
|
# binaries to be uploaded as arguments and takes every other args from
|
||||||
|
# env. Works on tags or normal commits (push), tags must start with v.
|
||||||
|
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
die() {
|
||||||
|
echo $*
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if test -z "$DEPLOY_TOKEN"; then
|
||||||
|
die "token DEPLOY_TOKEN not set"
|
||||||
|
fi
|
||||||
|
|
||||||
|
git fetch --all
|
||||||
|
|
||||||
|
# determine current tag or commit hash
|
||||||
|
version="$CI_COMMIT_TAG"
|
||||||
|
previous=""
|
||||||
|
log=""
|
||||||
|
if test -z "$version"; then
|
||||||
|
version="${CI_COMMIT_SHA:0:6}"
|
||||||
|
log=$(git log -1 --oneline)
|
||||||
|
else
|
||||||
|
previous=$(git tag -l | grep -E "^v" | tac | grep -A1 "$version" | tail -1)
|
||||||
|
log=$(git log -1 --oneline "${previous}..${version}" | sed 's|^|- |g')
|
||||||
|
fi
|
||||||
|
|
||||||
|
# release body
|
||||||
|
printf "# Changes\n\n %s\n" "$log" > body.txt
|
||||||
|
|
||||||
|
# create the release
|
||||||
|
https --ignore-stdin --check-status -b -A bearer -a "$DEPLOY_TOKEN" POST \
|
||||||
|
"https://codeberg.org/api/v1/repos/${CI_REPO_OWNER}/${CI_REPO_NAME}/releases" \
|
||||||
|
tag_name="$version" name="Release $version" body=@body.txt > release.json
|
||||||
|
|
||||||
|
# we need the id to upload files
|
||||||
|
ID=$(jq -r .id < release.json)
|
||||||
|
|
||||||
|
if test -z "$ID"; then
|
||||||
|
cat release.json
|
||||||
|
die "failed to create release"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# actually upload
|
||||||
|
for file in "$@"; do
|
||||||
|
https --ignore-stdin --check-status -A bearer -a "$DEPLOY_TOKEN" -f POST \
|
||||||
|
"https://codeberg.org/api/v1/repos/${CI_REPO_OWNER}/${CI_REPO_NAME}/releases/$ID/assets" \
|
||||||
|
"name=${file}" "attachment@${file}"
|
||||||
|
done
|
||||||
23
.woodpecker/release.yaml
Normal file
23
.woodpecker/release.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# build release
|
||||||
|
|
||||||
|
steps:
|
||||||
|
compile:
|
||||||
|
when:
|
||||||
|
event: [tag]
|
||||||
|
image: perl:5.43.5-slim-bookworm
|
||||||
|
commands:
|
||||||
|
- perl Makefile.PL
|
||||||
|
- make
|
||||||
|
- make dist
|
||||||
|
|
||||||
|
release:
|
||||||
|
image: alpine:latest
|
||||||
|
when:
|
||||||
|
event: [tag]
|
||||||
|
environment:
|
||||||
|
DEPLOY_TOKEN:
|
||||||
|
from_secret: DEPLOY_TOKEN
|
||||||
|
commands:
|
||||||
|
- apk update
|
||||||
|
- apk add --no-cache bash httpie jq git
|
||||||
|
- .woodpecker/release.sh Config-General-$CI_COMMIT_TAG.tar.gz
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
2.67 - fix github.com/TLINDEN/Config-General/issues/5:
|
2.67 - fix codeberg.org/scip/Config-General/issues/5:
|
||||||
fixing tests (add missing file to dist tarball) contributed
|
fixing tests (add missing file to dist tarball) contributed
|
||||||
by @paulwalrath.
|
by @paulwalrath.
|
||||||
- created gitignore file.
|
- created gitignore file.
|
||||||
|
|
||||||
2.66 - fix github.com/TLINDEN/Config-General/issues/1:
|
2.66 - fix codeberg.org/scip/Config-General/issues/1:
|
||||||
add support to quote values containing whitespace using the
|
add support to quote values containing whitespace using the
|
||||||
new flag -AlwaysQuoteOutput.
|
new flag -AlwaysQuoteOutput.
|
||||||
|
|
||||||
- apply patch by @haarg github.com/TLINDEN/Config-General/pull/2:
|
- apply patch by @haarg codeberg.org/scip/Config-General/pull/2:
|
||||||
fix exporter setup, use "our" where appropriate.
|
fix exporter setup, use "our" where appropriate.
|
||||||
|
|
||||||
2.65 - fix rt.cpan.org#132893: clarified license, now licensed
|
2.65 - fix rt.cpan.org#132893: clarified license, now licensed
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
- the Catalyst folks who hosted the source of this module
|
- the Catalyst folks who hosted the source of this module
|
||||||
closed or moved the repository, I have not been informed and
|
closed or moved the repository, I have not been informed and
|
||||||
have therefore lost all history of the module. So I moved
|
have therefore lost all history of the module. So I moved
|
||||||
to github (https://github.com/TLINDEN/Config-General).
|
to github (https://codeberg.org/scip/Config-General).
|
||||||
Thanks for nothing, Catalyst.
|
Thanks for nothing, Catalyst.
|
||||||
|
|
||||||
2.63 - fix for rt.cpan.org#116340: do only consider a backslash
|
2.63 - fix for rt.cpan.org#116340: do only consider a backslash
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
"release_status" : "stable",
|
"release_status" : "stable",
|
||||||
"resources" : {
|
"resources" : {
|
||||||
"repository" : {
|
"repository" : {
|
||||||
"url" : "https://github.com/TLINDEN/Config-General"
|
"url" : "https://codeberg.org/scip/Config-General"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version" : "2.67"
|
"version" : "2.67"
|
||||||
|
|||||||
2
META.yml
2
META.yml
@@ -23,5 +23,5 @@ requires:
|
|||||||
FileHandle: 0
|
FileHandle: 0
|
||||||
IO::File: 0
|
IO::File: 0
|
||||||
resources:
|
resources:
|
||||||
repository: https://github.com/TLINDEN/Config-General
|
repository: https://codeberg.org/scip/Config-General
|
||||||
version: 2.65
|
version: 2.65
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ WriteMakefile(
|
|||||||
},
|
},
|
||||||
'META_MERGE' => {
|
'META_MERGE' => {
|
||||||
resources => {
|
resources => {
|
||||||
repository => 'https://github.com/TLINDEN/Config-General'
|
repository => 'https://codeberg.org/scip/Config-General'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
($ExtUtils::MakeMaker::VERSION ge '6.31'?
|
($ExtUtils::MakeMaker::VERSION ge '6.31'?
|
||||||
|
|||||||
Reference in New Issue
Block a user