Skip to content

Commit

Permalink
[Fix] (CICD) : upload failed because container
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed May 14, 2023
1 parent 5b05f93 commit 731688c
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v3

- name: Install dependencies
run: sudo dnf install -y tar gzip libconfig-devel libconfig
run: sudo apt-get install -y tar gzip libconfig-devel libconfig

- name: Configure CMake
run: cmake . -DCMAKE_BUILD_TYPE=Release
Expand All @@ -31,18 +31,21 @@ jobs:
cp -r plugins raytracer-bin/
tar -czf - raytracer-bin | gzip -9 > raytracer.tar.gz
- name: Upload to release (binary)
uses: actions/upload-artifact@v3
with:
name: raytracer.tar.gz
path: raytracer.tar.gz

- name: Package to archive (examples)
run: |
mkdir raytracer-examples
cp scenes/**/*.yaax scenes/*.yaax raytracer-examples/
find raytracer-examples -name '*.yaax' -type f -print -exec ./raytracer --scene-path {} --output-path {} \;
tar -czf - raytracer-examples | gzip -9 > raytracer-examples.tar.gz
- name: Upload to release
uses: svenstaro/upload-release-action@v2
- name: Upload to release (examples)
uses: actions/upload-artifact@v3
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "./*.tar.gz"
file_glob: true
tag: ${{ github.ref }}
overwrite: true
name: raytracer-examples.tar.gz
path: raytracer-examples.tar.gz

0 comments on commit 731688c

Please sign in to comment.