Skip to content

Commit

Permalink
Try upload folder for upload-artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
matinlotfali committed Apr 22, 2024
1 parent 4a82609 commit 3bb27fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/debian12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,28 @@ jobs:
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
run: cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j
run: cmake --config ${{env.BUILD_TYPE}} -j

- id: package
name: Package
if: github.event_name != 'schedule'
run: |
cd ${{github.workspace}}/build
cpack -V -G DEB
DEB_NAME=kwin4_effect_shapecorners
SHORT_SHA=$(echo $GITHUB_SHA | head -c 5)
mv ${DEB_NAME}.deb ../${DEB_NAME}_${GITHUB_JOB}_${SHORT_SHA}.deb
mkdir artifacts
mv ${DEB_NAME}.deb artifacts/${DEB_NAME}_${GITHUB_JOB}_${SHORT_SHA}.deb
- name: Upload Artifact
uses: actions/[email protected]
if: github.event_name != 'schedule'
with:
name: Deb Package
path: ${{ github.workspace }}/*.deb
path: ./artifacts/
compression-level: 0
if-no-files-found: error

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/kubuntu2204-backports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,18 @@ jobs:
run: |
cd ${{github.workspace}}/build
cpack -V -G DEB
cd ..
DEB_NAME=kwin4_effect_shapecorners
SHORT_SHA=$(echo $GITHUB_SHA | head -c 5)
mv ${DEB_NAME}.deb ${DEB_NAME}_${GITHUB_JOB}_${SHORT_SHA}.debmv ${DEB_NAME}.deb ../${DEB_NAME}_${GITHUB_JOB}_${SHORT_SHA}.deb
mkdir artifacts
mv build/${DEB_NAME}.deb artifacts/${DEB_NAME}_${GITHUB_JOB}_${SHORT_SHA}.deb
- name: Upload Artifact
uses: actions/[email protected]
if: github.event_name != 'schedule'
with:
name: Debian Package
path: ${{ github.workspace }}/*.deb
path: ./artifacts/
compression-level: 0
if-no-files-found: error

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/neon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,18 @@ jobs:
run: |
cd ${{github.workspace}}/build
cpack -V -G DEB
cd ..
DEB_NAME=kwin4_effect_shapecorners
SHORT_SHA=$(echo $GITHUB_SHA | head -c 5)
mv ${DEB_NAME}.deb ../${DEB_NAME}_${GITHUB_JOB}_${SHORT_SHA}.deb
mkdir artifacts
mv build/${DEB_NAME}.deb artifacts/${DEB_NAME}_${GITHUB_JOB}_${SHORT_SHA}.deb
- name: Upload Artifact
uses: actions/[email protected]
if: github.event_name != 'schedule'
with:
name: Debian Package
path: ${{ github.workspace }}/*.deb
path: ./artifacts/
compression-level: 0
if-no-files-found: error

Expand Down

0 comments on commit 3bb27fb

Please sign in to comment.