Skip to content

Workflow file for this run

name: Publish package to GitHub Packages
on:
# release:
# types: [created]
push:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/[email protected]
- name: Create tag clearinghouse
id: tag_clearinghouse
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
INITIAL_VERSION: 2.0.1
- name: Publish package clearinghouse
run: ./gradlew :lib:clearinghouse:publish -Pversion=${{ steps.tag_clearinghouse.outputs.new_tag }}
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Reset Git State
run: |
git fetch --all
git reset --hard origin/main
- name: Create tag crypt4gh
id: tag_crypt4gh
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
INITIAL_VERSION: 3.0.0
- name: Publish package crypt4gh
run: ./gradlew :lib:crypt4gh:publish -Pversion=${{ steps.tag_crypt4gh.outputs.new_tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}