Skip to content

Commit

Permalink
Trying to add automatic release. Try 2/∞.
Browse files Browse the repository at this point in the history
  • Loading branch information
quswadress committed Jul 10, 2024
1 parent 970b097 commit 710822a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ jobs:
if: runner.os == 'Linux'
run: tar cf ../../build.tar *
working-directory: ./dist/main
- name: Create archive
if: runner.os != 'Linux'
run: Compress-Archive -Path * -DestinationPath ../../build.zip
working-directory: ./dist/main
- name: Send Linux ${{matrix.os}} artifact
uses: actions/upload-artifact@v4
if: runner.os == 'Linux'
Expand All @@ -84,7 +88,7 @@ jobs:
if: runner.os != 'Linux'
with:
name: build-windows
path: dist/main
path: build.zip

release:
runs-on: ubuntu-22.04
Expand All @@ -97,5 +101,14 @@ jobs:
run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT
- name: Download an artifacts
uses: actions/download-artifact@v4
- name: Reorganize artifacts
run: >
for d in */; do
f=("$d"*); # array variable that will store the file names in each directory
ext="${f[0]##*.}"; # extracting extension first file in folder
fname="${d%/}"; # Removing trailing slash
mv "${f[0]}" "${fname}.${ext}";
rmdir "$d";
done
- name: IDK
run: ls -R .

0 comments on commit 710822a

Please sign in to comment.