-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try upload folder for upload-artifacts
- Loading branch information
1 parent
4a82609
commit 3bb27fb
Showing
3 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|