Skip to content

Commit

Permalink
chore: fix channel
Browse files Browse the repository at this point in the history
  • Loading branch information
hexf00 committed Dec 19, 2024
1 parent e49c8d6 commit 70f4ffd
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,24 +68,34 @@ jobs:
echo "is_stable=false" >> $GITHUB_OUTPUT
fi
- name: Determine release channel
id: release_channel
shell: bash
run: |
if [ "${{ steps.version_type.outputs.is_dev }}" = "true" ]; then
echo "channel=development" >> $GITHUB_OUTPUT
else
echo "channel=production" >> $GITHUB_OUTPUT
fi
- name: init dest
id: init_dest
shell: bash
run: |
if [ ${{ steps.version_type.outputs.is_stable }} = true ]; then
echo "dest=univer-go/latest/" >> $GITHUB_OUTPUT
else
if [ ${{ steps.release_channel.outputs.channel }} = "development" ]; then
echo "dest=test/staging/" >> $GITHUB_OUTPUT
else
echo "dest=univer-go/latest/" >> $GITHUB_OUTPUT
fi
- name: Print Release Info
shell: bash
run: |
echo "Version: ${{ steps.set_version.outputs.version }}"
echo "Is Dev: ${{ steps.version_type.outputs.is_dev }}"
echo "Is Stable: ${{ steps.version_type.outputs.is_stable }}"
echo "Dest: ${{ steps.init_dest.outputs.dest }}"
echo "RELEASE_CHANNEL=$(${{ steps.version_type.outputs.is_dev }} ? "development" : "production")"
echo "RELEASE_CHANNEL: ${{ steps.release_channel.outputs.channel }}"
- name: Install Python setuptools
if: matrix.os == 'macos-latest'
Expand All @@ -104,7 +114,7 @@ jobs:
- name: Make
shell: bash
run: |
RELEASE_CHANNEL=$(${{ steps.version_type.outputs.is_dev }} ? "development" : "production") pnpm make
RELEASE_CHANNEL=${{ steps.release_channel.outputs.channel }} pnpm make
- uses: hexf00/upload-to-oss@v2
with:
Expand Down

0 comments on commit 70f4ffd

Please sign in to comment.