Updated joern, cpg, and re-used x2cpg API (#337) #222
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
name: Release | |
on: | |
push: | |
branches: [master, main] | |
tags: ["*"] | |
jobs: | |
release: | |
concurrency: release | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout github repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: apt-get update | |
run: sudo apt-get update | |
- name: Install gnupg | |
run: sudo apt update && sudo apt install -y gnupg | |
- name: Import GPG key | |
run: echo $PGP_SECRET | base64 --decode | gpg --batch --import | |
env: | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
cache: 'sbt' | |
- name: Run tests | |
run: sbt clean +test | |
- name: Release to sonatype | |
run: sbt clean ciReleaseTagNextVersion ciReleaseSonatype | |
env: | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
- name: Export ENV vars | |
run: | |
echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV | |
- name: Package github release | |
run: sbt clean Universal/packageBin Universal/packageZipTarball | |
- name: Create github release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: target/universal/*.zip | |
tag_name: ${{ env.LATEST_TAG }} |