diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c668d8db..73d4ae6b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,10 +17,10 @@ jobs: - name: Build project id: build_project env: - COMPOSER_ARCHIVE_OPTIONS: --file=gamify-laravel-${{ steps.get_version.outputs.VERSION }} + DIST_FILE: ./dist/gamify-laravel-dist-${{ steps.get_version.outputs.VERSION }} run: | - composer build - echo ::set-output name=FILENAME::gamify-laravel-${{ steps.get_version.outputs.VERSION }} + composer archive --format=zip --file=$DIST_FILE + echo ::set-output name=DIST_FILE::$DIST_FILE - name: Create Release id: create_release uses: actions/create-release@v1 @@ -31,6 +31,8 @@ jobs: release_name: Release ${{ github.ref }} draft: false prerelease: false + body: | + Review [CHANGELOG](https://github.com/pacoorozco/gamify-laravel/blob/master/CHANGELOG.md) to see changes. - name: Upload Release Asset (zip) id: upload-release-asset uses: actions/upload-release-asset@v1 @@ -38,6 +40,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./dist/${{ steps.build_project.outputs.FILENAME }}.zip - asset_name: ${{ steps.build_project.outputs.FILENAME }}.zip + asset_path: ${{ steps.build_project.outputs.DIST_FILE }}.zip + asset_name: ${{ steps.build_project.outputs.DIST_FILE }}.zip asset_content_type: application/zip diff --git a/composer.json b/composer.json index d5ab9a0d..cd2516ec 100644 --- a/composer.json +++ b/composer.json @@ -89,8 +89,7 @@ "vendor/bin/phpunit --coverage-html test-coverage" ], "build": [ - "@composer archive --format=tar --dir=dist $COMPOSER_ARCHIVE_OPTIONS", - "@composer archive --format=zip --dir=dist $COMPOSER_ARCHIVE_OPTIONS" + "@composer archive --format=zip --dir=dist" ] }, "config": {