Version 1.3.76 #145
Workflow file for this run
This file contains 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
on: | |
release: | |
types: [created] | |
name: Publish Release | |
jobs: | |
generate: | |
name: Create release-artifacts | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: | | |
./gradlew build; | |
./gradlew check; | |
./gradlew shadowJar -Drelease=true; | |
./gradlew toolDoc -Drelease=true; | |
mv ./build/docs ./toolDoc | |
- name: Inject slug/short variables | |
uses: rlespinasse/[email protected] | |
- name: Branch name | |
run: echo running on branch ${{ env.GITHUB_REF_SLUG }} | |
- name: Check JAR | |
run: | | |
java -version | |
java -jar build/libs/DISCVRSeq-${{ env.GITHUB_REF_SLUG }}.jar -h | |
- name: Upload Artifacts | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: build/libs/DISCVRSeq-${{ env.GITHUB_REF_SLUG }}.jar | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: GH Pages | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./toolDoc | |
enable_jekyll: true | |
- name: Docker meta | |
id: docker_meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ghcr.io/bimberlab/discvrseq | |
tags: | | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=sha | |
- name: Set up QEMU | |
uses: docker/[email protected] | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
with: | |
version: latest | |
buildkitd-flags: --debug | |
- name: Login to GitHub Container Registry | |
if: github.event_name != 'pull_request' | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.PAT }} | |
- name: Build and push | |
id: docker_build | |
uses: docker/[email protected] | |
with: | |
context: . | |
file: ./Dockerfile | |
pull: true | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.docker_meta.outputs.tags }} | |
labels: | | |
${{ steps.docker_meta.outputs.labels }} | |
org.opencontainers.image.title=DISCVRSeq Toolkit | |
org.opencontainers.image.description=DISCVR-seq Toolkit is a diverse collection of tools for working with sequencing data, developed and maintained by the Bimber Lab, built using the GATK4 engine. |