Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): include artalk_ui_nightly.tar.gz in nightly release #1027

Merged
merged 1 commit into from
Nov 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/build-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,11 @@ jobs:
- name: Pack UI
id: pack
run: |
SRC_FILE=$(pnpm pack -C ui/artalk --pack-destination ../.. | tail -n 1)
mkdir -p ./local/artalk_ui
cp -r ./public/dist ./public/sidebar ./local/artalk_ui

mkdir -p bin
PKG_FILE="bin/artalk_frontend_nigthly_$(date +'%Y%m%d').tar.gz"

mv $SRC_FILE $PKG_FILE
echo "pkg_file=$PKG_FILE" >> $GITHUB_OUTPUT
mkdir -p ./local/nightly_includes
tar -czf ./local/nightly_includes/artalk_ui_nightly.tar.gz -C ./local artalk_ui

- name: Upload UI
uses: actions/upload-artifact@v4
Expand All @@ -106,7 +104,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: build-ui-pkg
path: ${{ steps.pack.outputs.pkg_file }}
path: local/nightly_includes/artalk_ui_nightly.tar.gz
retention-days: 1

#
Expand Down