-
-
Notifications
You must be signed in to change notification settings - Fork 16
110 lines (102 loc) · 4.04 KB
/
release.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: hdfview release build
# Triggers the workflow on demand
on:
workflow_dispatch:
inputs:
use_tag:
description: 'HDFView Release version tag'
type: string
required: false
default: snapshot
use_tag4:
description: 'HDF Release version tag and base name'
type: string
required: false
default: snapshot
use_tag5:
description: 'HDF5 Release version tag'
type: string
required: false
default: snapshot
name_tag5:
description: 'HDF5 Release version base name'
type: string
required: false
default: snapshot
permissions:
contents: read
jobs:
log-the-inputs:
runs-on: ubuntu-latest
outputs:
rel_tag: ${{ steps.get-tag-name.outputs.RELEASE_TAG }}
rel4_tag: ${{ steps.get-tag-name.outputs.RELEASE4_TAG }}
rel5_tag: ${{ steps.get-tag-name.outputs.RELEASE5_TAG }}
steps:
- name: Get tag name
id: get-tag-name
env:
TAG: ${{ inputs.use_tag }}
TAG4: ${{ inputs.use_tag4 }}
TAG5: ${{ inputs.use_tag5 }}
run: |
echo "RELEASE_TAG=$TAG" >> $GITHUB_OUTPUT
echo "RELEASE4_TAG=$TAG4" >> $GITHUB_OUTPUT
echo "RELEASE5_TAG=$TAG5" >> $GITHUB_OUTPUT
call-workflow-tarball:
needs: log-the-inputs
uses: ./.github/workflows/tarball.yml
with:
use_tag: ${{ needs.log-the-inputs.outputs.rel_tag }}
use_environ: release
call-workflow-ant:
needs: [log-the-inputs, call-workflow-tarball]
uses: ./.github/workflows/ant.yml
with:
file_base: ${{ needs.call-workflow-tarball.outputs.file_base }}
use_hdf: ${{ needs.log-the-inputs.outputs.rel4_tag }}
use_hdf5: ${{ needs.log-the-inputs.outputs.rel5_tag }}
name_hdf5: ${{ inputs.name_tag5 }}
snap_name: HDFView-${{ needs.call-workflow-tarball.outputs.source_base }}
use_environ: release
secrets:
APPLE_CERTS_BASE64: ${{ secrets.APPLE_CERTS_BASE64 }}
APPLE_CERTS_BASE64_PASSWD: ${{ secrets.APPLE_CERTS_BASE64_PASSWD }}
KEYCHAIN_PASSWD: ${{ secrets.KEYCHAIN_PASSWD }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_ENDPOINT: ${{ secrets.AZURE_ENDPOINT }}
AZURE_CODE_SIGNING_NAME: ${{ secrets.AZURE_CODE_SIGNING_NAME }}
AZURE_CERT_PROFILE_NAME: ${{ secrets.AZURE_CERT_PROFILE_NAME }}
call-workflow-ant-app:
needs: [log-the-inputs, call-workflow-tarball]
uses: ./.github/workflows/ant-app.yml
with:
file_base: ${{ needs.call-workflow-tarball.outputs.file_base }}
use_hdf: ${{ needs.log-the-inputs.outputs.rel4_tag }}
use_hdf5: ${{ needs.log-the-inputs.outputs.rel5_tag }}
name_hdf5: ${{ inputs.name_tag5 }}
snap_name: HDFView-${{ needs.call-workflow-tarball.outputs.source_base }}
use_environ: release
secrets:
APPLE_CERTS_BASE64: ${{ secrets.APPLE_CERTS_BASE64 }}
APPLE_CERTS_BASE64_PASSWD: ${{ secrets.APPLE_CERTS_BASE64_PASSWD }}
KEYCHAIN_PASSWD: ${{ secrets.KEYCHAIN_PASSWD }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_ENDPOINT: ${{ secrets.AZURE_ENDPOINT }}
AZURE_CODE_SIGNING_NAME: ${{ secrets.AZURE_CODE_SIGNING_NAME }}
AZURE_CERT_PROFILE_NAME: ${{ secrets.AZURE_CERT_PROFILE_NAME }}
call-workflow-release:
needs: [log-the-inputs, call-workflow-tarball, call-workflow-ant, call-workflow-ant-app]
permissions:
contents: write # In order to allow tag creation
uses: ./.github/workflows/release-files.yml
with:
file_base: HDFView-${{ needs.call-workflow-tarball.outputs.source_base }}
file_branch: ${{ needs.call-workflow-tarball.outputs.file_branch }}
file_sha: ${{ needs.call-workflow-tarball.outputs.file_sha }}
use_tag: ${{ needs.log-the-inputs.outputs.rel_tag }}
use_environ: release