Skip to content

Commit

Permalink
Fix release process choices
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Feb 10, 2020
1 parent f157925 commit 1bf46e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PHP release

on:
release:
types: [published, created, edited]
types: [created, edited]

jobs:
run:
Expand Down
19 changes: 2 additions & 17 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,6 @@
<property name="clean.done" value="true"/>
</target>

<target name="signed-phar" depends="phar"
description="Create signed PHAR archive of PHPDraft and all its dependencies">
<exec executable="gpg" failonerror="true">
<arg value="--armor"/>
<arg value="--detach-sign"/>
<arg path="${project.basedir}/build/phpdraft-library-${version}.phar"/>
</exec>

<exec executable="gpg" failonerror="true">
<arg value="--armor"/>
<arg value="--detach-sign"/>
<arg path="${project.basedir}/build/phpdraft-${version}.phar"/>
</exec>
</target>

<target name="phar" depends="-phar-prepare"
description="Create PHAR archive of PHPDraft and all its dependencies">
<phingcall target="-phar-build">
Expand Down Expand Up @@ -160,7 +145,7 @@
</target>

<target name="validate-composer-json" unless="validate-composer-json.done" description="Validate composer.json">
<exec executable="composer" failonerror="true" taskname="composer">
<exec executable="composer" checkreturn="true" taskname="composer">
<arg value="validate"/>
<arg value="--no-check-lock"/>
<arg value="--strict"/>
Expand All @@ -173,4 +158,4 @@
<target name="-phar-determine-version">
<exec command="php ${project.basedir}/phpdraft --version | grep -ohE '([0-9]{1,}\.)+[0-9]{1,}'" outputproperty="version"/>
</target>
</project>
</project>
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
"vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover=coverage.xml"
],
"phar": [
"vendor/bin/phing phar-nightly",
"vendor/bin/phing signed-phar",
"vendor/bin/phing phar",
"sha256sum build/out/*"
]
},
Expand Down

0 comments on commit 1bf46e5

Please sign in to comment.