-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (56 loc) · 2.3 KB
/
build_installation_package.yaml
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
name: Build DQMGUI Installation Package
on: [push]
jobs:
build_and_upload:
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download and compress dependencies
env:
DMWM_GIT_TAG: ${{ env.DMWM_GIT_TAG }}
DMWM_GIT_URL: ${{ env.DMWM_GIT_URL }}
DQMGUI_GIT_TAG: ${{ env.DQMGUI_GIT_TAG }}
DQMGUI_GIT_URL: ${{ env.DQMGUI_GIT_URL }}
ROOT_GIT_URL: ${{ env.DQMGUI_GIT_TAG }}
ROOT_GIT_TAG: ${{ env.DQMGUI_GIT_URL }}
run: |
sudo apt update && sudo apt install -y libcurl4-gnutls-dev
$(which python3) --version
bash download_dependencies.sh DMWM_GIT_TAG=$DMWM_GIT_TAG DMWM_GIT_URL=$DMWM_GIT_URL DQMGUI_GIT_TAG=$DQMGUI_GIT_TAG ROOT_GIT_URL=$ROOT_GIT_URL ROOT_GIT_TAG=$ROOT_GIT_TAG
bash build_installation_package.sh
- name: Archive package artifact
uses: actions/upload-artifact@v3
with:
name: dqmgui-installation-package
path: |
/tmp/dqmgui/dqmgui_installation_package.tar.gz
# Create a dummy release, so that the artifact is downloadable
# without a GitHub account
# This will automatically update the artifacts of the "latest" release,
# even though the "latest" tag does match with the actually latest commit.
- name: Release
env:
DMWM_GIT_TAG: ${{ env.DMWM_GIT_TAG }}
DMWM_GIT_URL: ${{ env.DMWM_GIT_URL }}
DQMGUI_GIT_TAG: ${{ env.DQMGUI_GIT_TAG }}
DQMGUI_GIT_URL: ${{ env.DQMGUI_GIT_URL }}
ROOT_GIT_URL: ${{ env.DQMGUI_GIT_TAG }}
ROOT_GIT_TAG: ${{ env.DQMGUI_GIT_URL }}
uses: ncipollo/release-action@v1
with:
artifacts: "/tmp/dqmgui/dqmgui_installation_package.tar.gz"
body:
"Automatically generated dummy release for making the installation
package publicly available.
Used:
* DMWM_GIT_TAG=$DMWM_GIT_TAG
* DMWM_GIT_URL=$DMWM_GIT_URL
* DQMGUI_GIT_TAG=$DQMGUI_GIT_TAG
* ROOT_GIT_URL=$ROOT_GIT_URL
* ROOT_GIT_TAG=$ROOT_GIT_TAG
"
tag: "DMWM_$DMWM_GIT_TAG_DQMGUI=$DQMGUI_GIT_TAG_ROOT_$ROOT_GIT_TAG"
allowUpdates: "true"