Skip to content

Commit 7cf0ee9

Browse files
committed
Enable download
1 parent d882690 commit 7cf0ee9

1 file changed

Lines changed: 84 additions & 84 deletions

File tree

.github/workflows/delivery_stable_ci.yaml

Lines changed: 84 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -520,12 +520,12 @@ jobs:
520520
path: "${{ env.WORKDIR }}/TOOLS"
521521
token: '${{ secrets.EXTRA_REPOSITORY_PAT }}'
522522

523-
# # Download ALL artifacts (including extlib.zip)
524-
# - name: Download ALL artifacts for packaging
525-
# uses: actions/download-artifact@v4
526-
# with:
527-
# merge-multiple: true
528-
# path: "${{ env.WORKDIR }}/exec_tmp"
523+
# Download ALL artifacts (including extlib.zip)
524+
- name: Download ALL artifacts for packaging
525+
uses: actions/download-artifact@v4
526+
with:
527+
merge-multiple: true
528+
path: "${{ env.WORKDIR }}/exec_tmp"
529529

530530
- name: Check files in exec
531531
working-directory: ${{ env.WORKDIR }}
@@ -624,97 +624,97 @@ jobs:
624624
export OPENRADIOSS_BIN_ARCHIVE="${{ env.OPENRADIOSS_MAINDIR_NAME }}_${os}.zip"
625625
626626
cd todeliver/${os}
627-
zip -r ../$OPENRADIOSS_BIN_ARCHIVE ${{ env.OPENRADIOSS_MAINDIR_NAME }}
627+
# zip -r ../$OPENRADIOSS_BIN_ARCHIVE ${{ env.OPENRADIOSS_MAINDIR_NAME }}
628628
cd ..
629629
rm -rf ${os}
630630
cd ..
631631
done
632632
633-
- name: Set some variables
634-
working-directory: ${{ env.WORKDIR }}
635-
run: |
636-
echo "LAST_STABLE_COMMIT=$(git rev-list -n 1 ${{ env.LAST_STABLE_TAG_NAME }})" >> $GITHUB_ENV
637-
# Way to deal with special chars in a commit message
638-
{
639-
echo "LAST_STABLE_COMMIT_MESSAGE<<EOF"
640-
git log -1 --format=%B "${{ env.LAST_STABLE_TAG_NAME }}"
641-
echo "EOF"
642-
} >> $GITHUB_ENV
633+
# - name: Set some variables
634+
# working-directory: ${{ env.WORKDIR }}
635+
# run: |
636+
# echo "LAST_STABLE_COMMIT=$(git rev-list -n 1 ${{ env.LAST_STABLE_TAG_NAME }})" >> $GITHUB_ENV
637+
# # Way to deal with special chars in a commit message
638+
# {
639+
# echo "LAST_STABLE_COMMIT_MESSAGE<<EOF"
640+
# git log -1 --format=%B "${{ env.LAST_STABLE_TAG_NAME }}"
641+
# echo "EOF"
642+
# } >> $GITHUB_ENV
643+
644+
# - uses: octokit/request-action@v2.x
645+
# id: get_commit_author
646+
# env:
647+
# GITHUB_TOKEN: ${{ env.SERVBOT_PAT }}
648+
# REQUEST_BODY: "['${{ env.LAST_STABLE_COMMIT }}']"
649+
# with:
650+
# route: GET /repos/${{ github.repository }}/commits/${{ env.LAST_STABLE_COMMIT }}
643651

644-
- uses: octokit/request-action@v2.x
645-
id: get_commit_author
646-
env:
647-
GITHUB_TOKEN: ${{ env.SERVBOT_PAT }}
648-
REQUEST_BODY: "['${{ env.LAST_STABLE_COMMIT }}']"
649-
with:
650-
route: GET /repos/${{ github.repository }}/commits/${{ env.LAST_STABLE_COMMIT }}
652+
# - name: Counter Download - Update values
653+
# working-directory: ${{ env.WORKDIR }}
654+
# run: |
655+
# cd /github_download_counter
651656

652-
- name: Counter Download - Update values
653-
working-directory: ${{ env.WORKDIR }}
654-
run: |
655-
cd /github_download_counter
657+
# # Do some before using some lock and retry stuff
658+
# cp download_count.json sav-delivery-${{ env.DATEOFTHETAG }}-download_count.json
656659

657-
# Do some before using some lock and retry stuff
658-
cp download_count.json sav-delivery-${{ env.DATEOFTHETAG }}-download_count.json
660+
# github_download_count.py \
661+
# --git_api_url ${{ github.api_url }} \
662+
# --git_repo ${{ github.repository }} \
663+
# --git_user $SERVBOT_USER \
664+
# --git_token $SERVBOT_PAT \
665+
# --action update_values
659666

660-
github_download_count.py \
661-
--git_api_url ${{ github.api_url }} \
662-
--git_repo ${{ github.repository }} \
663-
--git_user $SERVBOT_USER \
664-
--git_token $SERVBOT_PAT \
665-
--action update_values
666667

668+
# # The action creates the release with an already existing tag (latest-xxxxx) so we use option skip_tag_creation: true
669+
# # We do this because we have already checkouted the wanted commit before
670+
# # Prerequisite: create the tag with command : git tag latest-YYYMMDD <commit id>; git push origin latest-YYYMMDD
671+
# - name: Release the new binaries
672+
# uses: docker://ghcr.io/mini-bomba/create-github-release:v1.2.0
673+
# with:
674+
# token: ${{ secrets.GITHUB_TOKEN }}
675+
# release: "${{ env.LAST_STABLE_TAG_NAME }}"
676+
# tag: "${{ env.LAST_STABLE_TAG_NAME }}"
677+
# name: "Last stable build on ${{ env.DATEOFTHETAG }}"
678+
# body: |
679+
# This automatic release is built from commit ${{ env.LAST_STABLE_COMMIT }} and authored by @${{ fromJson(steps.get_commit_author.outputs.data).author.login }}
680+
# [Github Actions workflow run that built this release](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
667681

668-
# The action creates the release with an already existing tag (latest-xxxxx) so we use option skip_tag_creation: true
669-
# We do this because we have already checkouted the wanted commit before
670-
# Prerequisite: create the tag with command : git tag latest-YYYMMDD <commit id>; git push origin latest-YYYMMDD
671-
- name: Release the new binaries
672-
uses: docker://ghcr.io/mini-bomba/create-github-release:v1.2.0
673-
with:
674-
token: ${{ secrets.GITHUB_TOKEN }}
675-
release: "${{ env.LAST_STABLE_TAG_NAME }}"
676-
tag: "${{ env.LAST_STABLE_TAG_NAME }}"
677-
name: "Last stable build on ${{ env.DATEOFTHETAG }}"
678-
body: |
679-
This automatic release is built from commit ${{ env.LAST_STABLE_COMMIT }} and authored by @${{ fromJson(steps.get_commit_author.outputs.data).author.login }}
680-
[Github Actions workflow run that built this release](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
681-
682-
Commit message:
683-
${{ env.LAST_STABLE_COMMIT_MESSAGE }}
684-
685-
Thank you for downloading OpenRadioss! We'd love to hear about your experience.
686-
👉 [Share your feedback here](https://app.sli.do/event/uxEN5N2jZqeUHnqZEyqrcx)
687-
688-
files: |
689-
${{ env.WORKDIR }}/todeliver/*
690-
clear_attachments: true
691-
skip_tag_creation: true
692-
target_commit: ${{ env.LAST_STABLE_COMMIT }}
693-
694-
- name: Counter Download - Update/Add entries
695-
working-directory: ${{ env.WORKDIR }}
696-
run: |
697-
cd /github_download_counter
698-
github_download_count.py \
699-
--git_api_url ${{ github.api_url }} \
700-
--git_repo ${{ github.repository }} \
701-
--git_user $SERVBOT_USER \
702-
--git_token $SERVBOT_PAT \
703-
--action update \
704-
--tag_date ${{ env.DATEOFTHETAG }}
682+
# Commit message:
683+
# ${{ env.LAST_STABLE_COMMIT_MESSAGE }}
705684

685+
# Thank you for downloading OpenRadioss! We'd love to hear about your experience.
686+
# 👉 [Share your feedback here](https://app.sli.do/event/uxEN5N2jZqeUHnqZEyqrcx)
706687

707-
- name: Clean old github release/tag if needed + clean Counter Download
708-
working-directory: ${{ env.WORKDIR }}
709-
run: |
710-
clean_github_release.py \
711-
--git_api_url ${{ github.api_url }} \
712-
--git_repo ${{ github.repository }} \
713-
--git_user $SERVBOT_USER \
714-
--git_token $SERVBOT_PAT \
715-
--nb_releases_to_keep ${{ env.DELIVERY_NB_RELEASES_TO_KEEP }} \
716-
--counter_file_dir /github_download_counter \
717-
--tag_prefix ${{ env.DELIVERY_TAG_PREFIX }}
688+
# files: |
689+
# ${{ env.WORKDIR }}/todeliver/*
690+
# clear_attachments: true
691+
# skip_tag_creation: true
692+
# target_commit: ${{ env.LAST_STABLE_COMMIT }}
693+
694+
# - name: Counter Download - Update/Add entries
695+
# working-directory: ${{ env.WORKDIR }}
696+
# run: |
697+
# cd /github_download_counter
698+
# github_download_count.py \
699+
# --git_api_url ${{ github.api_url }} \
700+
# --git_repo ${{ github.repository }} \
701+
# --git_user $SERVBOT_USER \
702+
# --git_token $SERVBOT_PAT \
703+
# --action update \
704+
# --tag_date ${{ env.DATEOFTHETAG }}
705+
706+
707+
# - name: Clean old github release/tag if needed + clean Counter Download
708+
# working-directory: ${{ env.WORKDIR }}
709+
# run: |
710+
# clean_github_release.py \
711+
# --git_api_url ${{ github.api_url }} \
712+
# --git_repo ${{ github.repository }} \
713+
# --git_user $SERVBOT_USER \
714+
# --git_token $SERVBOT_PAT \
715+
# --nb_releases_to_keep ${{ env.DELIVERY_NB_RELEASES_TO_KEEP }} \
716+
# --counter_file_dir /github_download_counter \
717+
# --tag_prefix ${{ env.DELIVERY_TAG_PREFIX }}
718718

719719
# - name: Create a new GitHub Discussion Annoucement
720720
# id: create-discussion

0 commit comments

Comments
 (0)