Skip to content

Commit

Permalink
ci: fix package asset uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Oct 15, 2024
1 parent 55214d7 commit d1c3566
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,9 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.mrdocs-release-package-artifact }}
path: build/packages
path: |
build/packages
!build/packages/_CPack_Packages
retention-days: 1

- name: FlameGraph
Expand Down Expand Up @@ -432,9 +434,13 @@ jobs:
with:
apt-get: build-essential asciidoctor cmake bzip2 git

- name: Clone mrdocs
- name: Clone MrDocs
uses: actions/checkout@v4

- name: Set Repository Ownership
run: |
git config --global --add safe.directory "$(pwd)"
- name: Install Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -453,6 +459,13 @@ jobs:
- name: Install MrDocs from Package
run: |
set -x
# Delete packages/_CPack_Packages files from previous runs
rm -rf packages/_CPack_Packages
# Print tree structure
find packages -print | sed 's;[^/]*/;|____;g;s;____|; |;g'
if [[ ${{ runner.os }} != 'Windows' ]]; then
dest_dir="$HOME/local"
mkdir -p "$dest_dir"
Expand Down Expand Up @@ -695,13 +708,6 @@ jobs:
chmod 755 -R $(pwd)/demos
scp -o StrictHostKeyChecking=no -r $(pwd)/demos/* [email protected]:$demo_dir/
- name: Clone MrDocs
uses: actions/checkout@v4

- name: Set Repository Ownership
run: |
git config --global --add safe.directory "$(pwd)"
- name: Create changelog
uses: alandefreitas/cpp-actions/[email protected]
with:
Expand All @@ -720,9 +726,10 @@ jobs:
- name: Create GitHub Package Release
if: ${{ github.event_name == 'push' && (contains(fromJSON('["master", "develop"]'), github.ref_name) || startsWith(github.ref, 'refs/tags/')) }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: packages/MrDocs-?.?.?-*.*
files: packages/MrDocs-*.*.*-*.*
fail_on_unmatched_files: true
name: ${{ github.ref_name || github.ref }}
tag_name: ${{ github.ref_name || github.ref }}${{ ((!startsWith(github.ref, 'refs/tags/')) && '-release') || '' }}
body_path: CHANGELOG.md
Expand Down

0 comments on commit d1c3566

Please sign in to comment.