Skip to content

Commit

Permalink
Clean up test code from github action
Browse files Browse the repository at this point in the history
Signed-off-by: pacoorozco <paco@pacoorozco.info>
  • Loading branch information
pacoorozco committed Apr 11, 2020
1 parent 1dde3c5 commit 2b8a241
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,13 +31,15 @@ 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
env:
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
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 2b8a241

Please sign in to comment.