summaryrefslogtreecommitdiff
path: root/.github/actions/upload-release-tarballs/action.yml
blob: daec45234b89dc130e0d3ec2a2d26a303bf68be3 (plain)
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
name: "Upload release tarballs"
description: >-
  Upload one target's release tarballs, one artifact each under the names
  .github/scripts/release-policy.py requires. There is one step per line of
  CMake/release-tarballs.txt.

inputs:
  version:
    description: "WSJT-X version string"
    required: true
  target:
    description: "Release target, for example linux-x86_64 or arm64-macOS"
    required: true
  directory:
    description: "Directory that holds the target's release tarballs"
    required: true

runs:
  using: "composite"
  steps:
    - name: Upload jt9 tarball
      uses: actions/upload-artifact@v7
      with:
        name: wsjtx-${{ inputs.version }}-${{ inputs.target }}-jt9
        path: ${{ inputs.directory }}/wsjtx-${{ inputs.version }}-${{ inputs.target }}-jt9.tar.gz
        if-no-files-found: error
        compression-level: 0

    - name: Upload jt9stream tarball
      uses: actions/upload-artifact@v7
      with:
        name: wsjtx-${{ inputs.version }}-${{ inputs.target }}-jt9stream
        path: ${{ inputs.directory }}/wsjtx-${{ inputs.version }}-${{ inputs.target }}-jt9stream.tar.gz
        if-no-files-found: error
        compression-level: 0

    - name: Upload wsprd tarball
      uses: actions/upload-artifact@v7
      with:
        name: wsjtx-${{ inputs.version }}-${{ inputs.target }}-wsprd
        path: ${{ inputs.directory }}/wsjtx-${{ inputs.version }}-${{ inputs.target }}-wsprd.tar.gz
        if-no-files-found: error
        compression-level: 0

    - name: Upload utilities tarball
      uses: actions/upload-artifact@v7
      with:
        name: wsjtx-${{ inputs.version }}-${{ inputs.target }}-utilities
        path: ${{ inputs.directory }}/wsjtx-${{ inputs.version }}-${{ inputs.target }}-utilities.tar.gz
        if-no-files-found: error
        compression-level: 0