Skip to content

Commit

Permalink
chore(ci): add filesystem module to release
Browse files Browse the repository at this point in the history
  • Loading branch information
jeqo committed Nov 28, 2024
1 parent acccbb0 commit 35d59a7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ jobs:
export azure_zip_file=$(ls ./storage/azure/build/distributions/ | grep zip)
echo azure_tar_file=${azure_tar_file} >> $GITHUB_ENV
echo azure_zip_file=${azure_zip_file} >> $GITHUB_ENV
# Filesystem libs
export fs_tar_file=$(ls ./storage/filesystem/build/distributions/ | grep tgz)
export fs_zip_file=$(ls ./storage/filesystem/build/distributions/ | grep zip)
echo fs_tar_file=${fs_tar_file} >> $GITHUB_ENV
echo fs_zip_file=${fs_zip_file} >> $GITHUB_ENV
echo core_tar_path=`realpath ./core/build/distributions/${core_tar_file}` >> $GITHUB_ENV
echo core_zip_path=`realpath ./core/build/distributions/${core_zip_file}` >> $GITHUB_ENV
Expand All @@ -72,6 +77,8 @@ jobs:
echo gcs_zip_path=`realpath ./storage/gcs/build/distributions/${gcs_zip_file}` >> $GITHUB_ENV
echo azure_tar_path=`realpath ./storage/azure/build/distributions/${azure_tar_file}` >> $GITHUB_ENV
echo azure_zip_path=`realpath ./storage/azure/build/distributions/${azure_zip_file}` >> $GITHUB_ENV
echo fs_tar_path=`realpath ./storage/filesystem/build/distributions/${fs_tar_file}` >> $GITHUB_ENV
echo fs_zip_path=`realpath ./storage/filesystem/build/distributions/${fs_zip_file}` >> $GITHUB_ENV
- name: Create tag
env:
Expand Down Expand Up @@ -168,3 +175,21 @@ jobs:
asset_path: ${{ env.azure_zip_path }}
asset_name: ${{ env.azure_zip_file }}
asset_content_type: application/zip
- name: Upload filesystem tar
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.fs_tar_path }}
asset_name: ${{ env.fs_tar_file }}
asset_content_type: application/tar
- name: Upload filesystem zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.fs_zip_path }}
asset_name: ${{ env.fs_zip_file }}
asset_content_type: application/zip

0 comments on commit 35d59a7

Please sign in to comment.