4 Commity

2 zmienionych plików z 17 dodań i 8 usunięć
  1. +16
    -7
      .github/workflows/release.yml
  2. +1
    -1
      CMakeLists.txt

+ 16
- 7
.github/workflows/release.yml Wyświetl plik

@@ -59,18 +59,27 @@ jobs:
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
shell: bash shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>" # Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE
run: cmake --build . --config $BUILD_TYPE && cmake --build . --target package


- name: Upload binary
- name: Upload TGZ package
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
with: with:
upload_url: ${{ needs.prepare_release.outputs.upload_url }} upload_url: ${{ needs.prepare_release.outputs.upload_url }}
asset_path: ./${{runner.workspace}}/aptdec/build/aptdec
asset_name: aptdec_lin64
asset_content_type: application/x-executable
asset_path: ${{runner.workspace}}/build/aptdec-${{ github.ref_name }}.x86_64.tar.gz
asset_name: aptdec-${{ github.ref_name }}.x86_64.tar.gz
asset_content_type: application/gzip
env: env:
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}


- name: Upload DEB package
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ needs.prepare_release.outputs.upload_url }}
asset_path: ${{runner.workspace}}/build/aptdec-${{ github.ref_name }}.x86_64.deb
asset_name: aptdec-${{ github.ref_name }}.x86_64.deb
asset_content_type: application/vnd.debian.binary-package
env:
GITHUB_TOKEN: ${{ github.token }}


build_windows: build_windows:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -94,8 +103,8 @@ jobs:
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
with: with:
upload_url: ${{ needs.prepare_release.outputs.upload_url }} upload_url: ${{ needs.prepare_release.outputs.upload_url }}
asset_path: ./${{runner.workspace}}/aptdec/winbuild/aptdec-1.7.0.zip
asset_name: aptdec_win64.zip
asset_path: ${{runner.workspace}}/aptdec/winbuild/aptdec-${{ github.ref_name }}.zip
asset_name: aptdec-${{ github.ref_name }}.zip
asset_content_type: application/zip asset_content_type: application/zip
env: env:
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}

+ 1
- 1
CMakeLists.txt Wyświetl plik

@@ -64,7 +64,7 @@ else()
endif() endif()


# TODO: get this from git # TODO: get this from git
set(PROJECT_VERSION "1.7.0")
set(PROJECT_VERSION "v1.8.0")


# CPack # CPack
set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}") set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")


Ładowanie…
Anuluj
Zapisz