diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml deleted file mode 100644 index 19be3e4..0000000 --- a/.github/workflows/create-release.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Release - -on: - push: - tags: - - 'v*.*.*' - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - submodules: true # Include submodules - fetch-depth: 0 - - - name: Create tar.gz archive - run: | - mkdir -p release/cpp-oasvalidator-${GITHUB_REF#refs/tags/} - git archive --format=tar.gz --prefix=cpp-oasvalidator-${GITHUB_REF#refs/tags/}/ HEAD | tar -x -C release - git submodule foreach --recursive 'git archive --format=tar.gz --prefix=cpp-oasvalidator-${GITHUB_REF#refs/tags/}/$path/ HEAD | tar -x -C release' - cd release - tar -czf ../cpp-oasvalidator-${GITHUB_REF#refs/tags/}.tar.gz cpp-oasvalidator-${GITHUB_REF#refs/tags/} - cd .. - - - name: Create zip archive - run: | - mkdir -p release/cpp-oasvalidator-${GITHUB_REF#refs/tags/} - git archive --format=zip --prefix=cpp-oasvalidator-${GITHUB_REF#refs/tags/}/ HEAD -o release/cpp-oasvalidator-${GITHUB_REF#refs/tags/}.zip - cd release - unzip cpp-oasvalidator-${GITHUB_REF#refs/tags/}.zip -d . - rm cpp-oasvalidator-${GITHUB_REF#refs/tags/}.zip - git submodule foreach --recursive 'git archive --format=zip --prefix=cpp-oasvalidator-${GITHUB_REF#refs/tags/}/$path/ HEAD -o ../$path.zip && unzip ../$path.zip -d . && rm ../$path.zip' - zip -r ../cpp-oasvalidator-${GITHUB_REF#refs/tags/}.zip cpp-oasvalidator-${GITHUB_REF#refs/tags/} - cd .. - - - name: Upload Release Assets - uses: actions/upload-artifact@v2 - with: - name: release-asset-tar - path: cpp-oasvalidator-${GITHUB_REF#refs/tags/}.tar.gz - - - name: Upload Release Assets - uses: actions/upload-artifact@v2 - with: - name: release-asset-zip - path: cpp-oasvalidator-${GITHUB_REF#refs/tags/}.zip diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 1564047..bcea43e 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -68,7 +68,7 @@ jobs: run: cp -r build/debug/covhtml-oasvalidator build/debug/docs/html - name: Deploy docs - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.MY_PAT }} publish_dir: build/debug/docs/html @@ -78,9 +78,10 @@ jobs: run: | lcov --capture --directory . --output-file coverage.info lcov --remove coverage.info '/usr/*' --output-file coverage.info + lcov --remove coverage.info '*/thirdparty/*' --output-file coverage.info lcov --list coverage.info - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}