ci: force snapshot re-resolution (-U) until pages-repo auto-publish i… #9
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: [ main, "rework/**" ] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup JDK 25 (+ maven settings for GitHub Packages) | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '25' | |
| server-id: github-pinont # must match the <id> of the GH Packages repo in pom.xml | |
| settings-path: ${{ github.workspace }} | |
| # EXPERIMENT: resolves SingularityLib 2.0.0-SNAPSHOT from GitHub Packages using | |
| # this repo's own GITHUB_TOKEN — tests whether cross-repo same-user reads are | |
| # allowed by default without a manual package-access grant. | |
| - name: Build (full compile against lib snapshot) | |
| run: mvn -B -U clean package | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} |