← 返回首页
Merge pull request #301 from melissalinkert/bio-formats-8.4.0 · scijava/pom-scijava@318609c · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Workflow file

build

build #522

Workflow file for this run

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: "4 5 * * 0" # every Sunday at 0405, to keep cache alive
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '11'
java-package: 'jdk+fx'
distribution: 'zulu'
cache: 'maven'
- name: Set up CI environment
run: .github/setup.sh
- name: Restore the melting-pot cache
id: restore-cache
uses: actions/cache/restore@v3
with:
path: ~/.cache/scijava/melting-pot
key: ${{ runner.os }}-cache
- name: Execute the build
id: execute-build
run: .github/build.sh
env:
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
CENTRAL_USER: ${{ secrets.CENTRAL_USER }}
CENTRAL_PASS: ${{ secrets.CENTRAL_PASS }}
SIGNING_ASC: ${{ secrets.SIGNING_ASC }}
- name: Delete the melting-pot cache
if: env.cacheChanged == 'true'
id: delete-cache
run: |
gh api --method DELETE -H "Accept: application/vnd.github+json" /repos/scijava/pom-scijava/actions/caches?key=${{ runner.os }}-cache || true
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- name: Save the melting-pot cache
if: env.cacheChanged == 'true'
id: save-cache
uses: actions/cache/save@v3
with:
path: ~/.cache/scijava/melting-pot
key: ${{ runner.os }}-cache
- name: Return the exit code
id: exit-build
run: .github/exit.sh