FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
externalsortinginjava/.github/workflows/release.yml at master · lemire/externalsortinginjava · GitHub
lemire
/
externalsortinginjava
Public
Notifications
You must be signed in to change notification settings
Fork
102
Star
263
Code
Issues
4
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
externalsortinginjava
/
.github
/
workflows
/
release.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
89 lines (77 loc) · 3 KB
Breadcrumbs
externalsortinginjava
/
.github
/
workflows
/
release.yml
Copy path
File metadata and controls
89 lines (77 loc) · 3 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name
:
Release
on
:
workflow_dispatch
:
inputs
:
releaseVersion
:
description
:
"
Release version, e.g. 0.3.6 (optional — auto-detected from the current POM)
"
required
:
false
jobs
:
release
:
runs-on
:
ubuntu-latest
permissions
:
contents
:
write
#
to automatically create tags
steps
:
-
name
:
Validate release version
if
:
${{ github.event.inputs.releaseVersion != '' }}
run
:
|
RELEASE=${{ github.event.inputs.releaseVersion }}
if [[ ! $RELEASE =~ ^[0-9]+\.[0-9]+\.[0-9]+(-SNAPSHOT)?$ ]]; then
echo "Error: releaseVersion '$RELEASE' is not in the correct format x.y.z or x.y.z-SNAPSHOT"
exit 1
fi
-
name
:
Checkout
uses
:
actions/checkout@v4
with
:
fetch-depth
:
0
ref
:
master
-
name
:
Set up Java
uses
:
actions/setup-java@v4
with
:
java-version
:
'
21
'
distribution
:
'
adopt
'
gpg-private-key
:
${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase
:
MAVEN_GPG_PASSPHRASE
-
name
:
Configure git
run
:
|
git config user.email "actions@github.com"
git config user.name "GitHub Actions"
-
name
:
Prepare Release
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
MAVEN_GPG_PASSPHRASE
:
${{ secrets.GPG_PASSPHRASE }}
run
:
|
MVN_ARGS=""
if [ -n "${{ github.event.inputs.releaseVersion }}" ]; then
MVN_ARGS="$MVN_ARGS -DreleaseVersion=${{ github.event.inputs.releaseVersion }}"
fi
mvn -B release:prepare $MVN_ARGS
-
name
:
Check release.properties
run
:
|
if [ ! -f release.properties ]; then
echo "release.properties not found"
exit 1
fi
echo "Contents of release.properties:"
cat release.properties
-
name
:
Determine release version
id
:
version
run
:
|
export TAG=$(grep 'scm.tag=' release.properties | cut -d'=' -f2)
export VERSION=${TAG#JavaFastPFOR-}
echo "released_tag=${TAG}" >> $GITHUB_OUTPUT
echo "released_version=${VERSION}" >> $GITHUB_OUTPUT
echo "Releasing tag: ${TAG}"
echo "Releasing version: ${VERSION}"
-
name
:
Release
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
MAVEN_GPG_PASSPHRASE
:
${{ secrets.GPG_PASSPHRASE }}
MAVEN_GPG_KEY
:
${{ secrets.GPG_PRIVATE_KEY }}
MAVEN_USER
:
${{ secrets.MAVEN_USER }}
MAVEN_PASSWORD
:
${{ secrets.MAVEN_PASSWORD }}
run
:
|
mvn -B release:perform -Darguments="-DskipTests -DaltDeploymentRepository=id::default::njord: -Dnjord.autoPublish=true -Dnjord.publishingType=automatic" -s .github/release-settings.xml
-
name
:
Create GitHub Release
run
:
gh release create "${{ steps.version.outputs.released_tag }}" --generate-notes --title "${{ steps.version.outputs.released_version }}"
env
:
GH_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
Back
|
FazBrowse Home
|
New Git URL