Don't create unnecessary subfolder in Linux action

It results in a tdesktop/tdesktop/tdesktop path
This commit is contained in:
Ilya Fedin 2025-05-08 02:29:20 +04:00 committed by John Preston
parent ce764c862f
commit ce010653d5

View file

@ -54,14 +54,10 @@ jobs:
UPLOAD_ARTIFACT: "true" UPLOAD_ARTIFACT: "true"
steps: steps:
- name: Get repository name.
run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Clone. - name: Clone.
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
path: ${{ env.REPO_NAME }}
- name: First set up. - name: First set up.
run: | run: |
@ -71,8 +67,6 @@ jobs:
- name: Telegram Desktop build. - name: Telegram Desktop build.
run: | run: |
cd $REPO_NAME
DEFINE="" DEFINE=""
if [ -n "${{ matrix.defines }}" ]; then if [ -n "${{ matrix.defines }}" ]; then
DEFINE="-D ${{ matrix.defines }}=ON" DEFINE="-D ${{ matrix.defines }}=ON"
@ -101,7 +95,7 @@ jobs:
- name: Check. - name: Check.
run: | run: |
filePath="$REPO_NAME/out/Debug/Telegram" filePath="out/Debug/Telegram"
if test -f "$filePath"; then if test -f "$filePath"; then
echo "Build successfully done! :)" echo "Build successfully done! :)"
@ -115,7 +109,7 @@ jobs:
- name: Move artifact. - name: Move artifact.
if: env.UPLOAD_ARTIFACT == 'true' if: env.UPLOAD_ARTIFACT == 'true'
run: | run: |
cd $REPO_NAME/out/Debug cd out/Debug
mkdir artifact mkdir artifact
mv {Telegram,Updater} artifact/ mv {Telegram,Updater} artifact/
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
@ -123,4 +117,4 @@ jobs:
name: Upload artifact. name: Upload artifact.
with: with:
name: ${{ env.ARTIFACT_NAME }} name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.REPO_NAME }}/out/Debug/artifact/ path: out/Debug/artifact/