Skip to content

Commit

Permalink
Prepare draft releases from tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Gekkio committed Dec 27, 2023
1 parent 8d6f989 commit 9840501
Showing 1 changed file with 26 additions and 11 deletions.
37 changes: 26 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
name: ci
on:
pull_request:
push:
branches:
- main
on: push

env:
GHIDRA_VERSION: "11.0"
GHIDRA_BUILD_DATE: 20231222
GHIDRA_SHA256: f1f240f91cf6b1dffc9a4148384ee3c6b269a8ae27c6f981577973e00043ad94
GHIDRA_INSTALL_DIR: /home/runner/ghidra

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
Expand All @@ -27,5 +24,23 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: distribution
path: build/distributions/*.zip
path: build/distributions/*_GhidraBoy.zip
if-no-files-found: 'error'
release:
if: 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

0 comments on commit 9840501

Please sign in to comment.