1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-29 12:13:52 +00:00

Clean up sdist creation (#422)

* Adding package to release

* Fix build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Cleaner, tigher packages

* Do not add package to release
This commit is contained in:
Henry Schreiner 2020-01-31 13:17:11 -05:00 committed by GitHub
parent ee851c7e88
commit 9549c6287f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 2 deletions

View File

@ -17,20 +17,42 @@ jobs:
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
with:
submodules: true
- uses: actions/setup-python@v1 - uses: actions/setup-python@v1
- name: Make header - name: Make header
run: python ./scripts/MakeSingleHeader.py CLI11.hpp run: python ./scripts/MakeSingleHeader.py CLI11.hpp
# Build in place for simplicity - don't do this in real life!
- name: Prepare CMake config
run: cmake -S . -B build
- name: Make package
run: cmake --build build --target package_source
- name: Copy source packages
run: |
mkdir -p CLI11-Source
cp build/CLI11-*-Source.* CLI11-Source
cp build/CLI11-*-Source.* .
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v1
with: with:
name: CLI11.hpp name: CLI11.hpp
path: CLI11.hpp path: CLI11.hpp
- uses: actions/upload-artifact@v1
with:
name: CLI11-Source
path: CLI11-Source
- name: Release - name: Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
files: CLI11.hpp files: |
CLI11.hpp
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -286,7 +286,17 @@ set(CPACK_SOURCE_IGNORE_FILES
/\\\\.DS_Store /\\\\.DS_Store
/.*\\\\.egg-info /.*\\\\.egg-info
/var /var
/Pipfile.*$ /azure-pipelines.yml
/.ci
/docs
/examples
/test_package
/book
/.travis.yml
.swp
/.all-contributorsrc
/.appveyor.yml
/.pre-commit.*yaml
) )
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION}) set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})