Skip to content

WIP: Test release flow #79

WIP: Test release flow

WIP: Test release flow #79

Workflow file for this run

name: ci
on: push
jobs:
build_and_test:
name: Build + test
runs-on: ubuntu-latest
env:
GHIDRA_VERSION: "10.4"
GHIDRA_BUILD_DATE: 20230928
GHIDRA_SHA256: 6911d674798f145f8ea723fdd3eb67a8fae8c7be92e117bca081e6ef66acac19
GHIDRA_INSTALL_DIR: /home/runner/ghidra
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Install Ghidra
run: .github/scripts/install_ghidra.sh
- run: ./gradlew build
- uses: actions/upload-artifact@v4
with:
name: distribution
path: build/distributions/*.zip
if-no-files-found: 'error'
release:
name: Create release
runs-on: ubuntu-latest
needs: build_and_test
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: distribution
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.ref_name }}"
gh release upload "${{ github.ref_name }}" build/distributions/*.zip