Skip to content

Commit

Permalink
Fix github action
Browse files Browse the repository at this point in the history
Signed-off-by: pacoorozco <[email protected]>
  • Loading branch information
pacoorozco committed Apr 11, 2020
1 parent dff2089 commit ad43168
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Upload Release Asset
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

name: Upload Release Asset
env:
FILENAME: "gamify-laravel-${{ github.ref }}"

jobs:
build:
Expand All @@ -14,18 +14,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Build project # This would actually build your project, using zip for an example artifact
id: build_project
run: |
FILE="gamify-laravel-${{ github.ref }}"
COMPOSER_ARCHIVE_OPTIONS="--file=$FILE"
composer build
echo '::set-env name=FILE::$FILE'
- name: Print var
run: |
echo "1. $FILE"
echo "2. ${{ FILE }}"
echo "3. ${{ steps.build_project.outputs.file }}"
echo "4. ${{ steps.build_project.outputs.FILE }}"
env:
COMPOSER_ARCHIVE_OPTIONS: "--file=$FILENAME"
run: composer build
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit ad43168

Please sign in to comment.