-
Notifications
You must be signed in to change notification settings - Fork 43
56 lines (48 loc) · 1.33 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Publish release artifacts
on:
workflow_dispatch:
inputs:
tag:
description: Release git tag
type: string
required: true
push:
pull_request:
permissions:
contents: write
jobs:
build_and_publish:
runs-on: ubuntu-latest
strategy:
matrix:
ghidra: [ "11.2" ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21"
- name: Setup Ghidra ${{ matrix.ghidra }}
uses: antoniovazquezblanco/[email protected]
with:
version: ${{ matrix.ghidra }}
- name: Build extension
run: ./gradlew
- uses: svenstaro/upload-release-action@v2
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/v')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/SwitchLoader-*.zip
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- uses: svenstaro/upload-release-action@v2
if: github.event_name == 'workflow_dispatch'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/SwitchLoader-*.zip
tag: ${{ inputs.tag }}
overwrite: true
file_glob: true