Skip to content

WIP: Test release flow #83

WIP: Test release flow

WIP: Test release flow #83

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/*_GhidraBoy.zip
if-no-files-found: 'error'
release:
if: github.ref_type == "tag"

Check failure on line 29 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 29, Col: 9): Unexpected symbol: '"tag"'. Located at position 20 within expression: github.ref_type == "tag"
name: Create draft release
runs-on: ubuntu-latest
needs: build_and_test
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: distribution
- name: Create release and upload distribution
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create --draft "${{ github.ref_name }}"
gh release upload "${{ github.ref_name }}" *_GhidraBoy.zip