Release notes update #82
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_URL: ${{ vars.DMWM_GIT_URL }} | |
DMWM_GIT_TAG: ${{ vars.DMWM_GIT_TAG }} | |
DQMGUI_GIT_URL: ${{ vars.DQMGUI_GIT_URL }} | |
DQMGUI_GIT_TAG: ${{ vars.DQMGUI_GIT_TAG }} | |
ROOT_GIT_URL: ${{ vars.ROOT_GIT_URL }} | |
ROOT_GIT_TAG: ${{ vars.ROOT_GIT_TAG }} | |
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 | |
echo "Automatically generated release for making the installation package publicly available. | |
The release name currently follows the convention: | |
deployment\_\`DMWM_GIT_TAG\`\_dqmgui\_\`DQMGUI_GIT_TAG\`\_root\_\`ROOT_GIT_TAG\` | |
Used repositories: | |
* dmwm/deployment ([${DMWM_GIT_TAG}](${DMWM_GIT_URL}/tree/${DMWM_GIT_TAG})) | |
* DQMGUI ([${DQMGUI_GIT_TAG}](${DQMGUI_GIT_URL}/tree/${DQMGUI_GIT_TAG})) | |
* ROOT ([${ROOT_GIT_TAG}](${ROOT_GIT_URL}/tree/${ROOT_GIT_TAG})) | |
" >> /tmp/release_body.md | |
echo "RELEASE_TAG=deployment_${DMWM_GIT_TAG}_dqmgui_${DQMGUI_GIT_TAG}_root_${ROOT_GIT_TAG}" >> $GITHUB_ENV | |
- name: Archive package artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dqmgui-installation-package | |
path: | | |
/tmp/dqmgui/dqmgui_installation_package.tar.gz | |
# Create a release based on the tags used, so that the artifact is downloadable | |
# without a GitHub account. | |
- name: Release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "/tmp/dqmgui/dqmgui_installation_package.tar.gz" | |
bodyFile: "/tmp/release_body.md" | |
tag: ${{ env.RELEASE_TAG }} | |
allowUpdates: "true" |