Skip to content

Commit b3d5777

Browse files
committed
Update CI to current practices
1 parent 7c76764 commit b3d5777

5 files changed

Lines changed: 14 additions & 9 deletions

File tree

‎.github/build.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-build.sh
2+
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/main/ci-build.sh
33
sh ci-build.sh

‎.github/setup.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-setup-github-actions.sh
2+
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/main/ci-setup-github-actions.sh
33
sh ci-setup-github-actions.sh

‎.github/workflows/build.yml‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,36 @@ name: build
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
tags:
88
- "*-[0-9]+.*"
99
pull_request:
1010
branches:
11-
- master
11+
- main
1212

1313
jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v6
1919
- name: Set up Java
20-
uses: actions/setup-java@v3
20+
uses: actions/setup-java@v5
2121
with:
2222
java-version: '8'
2323
distribution: 'zulu'
2424
cache: 'maven'
2525
- name: Set up CI environment
2626
run: .github/setup.sh
27+
shell: bash
2728
- name: Execute the build
2829
run: .github/build.sh
30+
shell: bash
2931
env:
3032
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
3133
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
3234
MAVEN_USER: ${{ secrets.MAVEN_USER }}
3335
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
34-
OSSRH_USER: ${{ secrets.OSSRH_USER }}
35-
OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
36+
CENTRAL_USER: ${{ secrets.CENTRAL_USER }}
37+
CENTRAL_PASS: ${{ secrets.CENTRAL_PASS }}
3638
SIGNING_ASC: ${{ secrets.SIGNING_ASC }}

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![](https://img.shields.io/maven-central/v/org.scijava/scijava-config.svg)](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.scijava%22%20AND%20a%3A%22scijava-config%22)
2-
[![](https://github.com/scijava/scijava-config/actions/workflows/build-main.yml/badge.svg)](https://github.com/scijava/scijava-config/actions/workflows/build-main.yml)
2+
[![Build Status](https://github.com/scijava/scijava-config/actions/workflows/build.yml/badge.svg)](https://github.com/scijava/scijava-config/actions/workflows/build.yml)
33

44
scijava-config
55
==============

‎pom.xml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@
8383
<license.licenseName>bsd_2</license.licenseName>
8484
<license.copyrightOwners>SciJava developers.</license.copyrightOwners>
8585
<license.projectName>SciJava Configuration bundle for SciJava software.</license.projectName>
86+
87+
<!-- NB: Deploy releases to the SciJava Maven repository. -->
88+
<releaseProfiles>sign,deploy-to-scijava</releaseProfiles>
8689
</properties>
8790

8891
<repositories>

0 commit comments

Comments
 (0)