-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Github workflow to build release artifact.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Build release artifact. | ||
on: | ||
push: | ||
release: | ||
types: [ published ] | ||
jobs: | ||
tag: | ||
name: Build release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
# Composer install not needed as long as we have the system/libraries/ directory committed. | ||
#- name: Install Composer dependencies | ||
# uses: php-actions/composer@v6 | ||
# with: | ||
# dev: no | ||
# php_version: 7.4 | ||
# php_extensions: bcmath | ||
|
||
- name: Create release artifact. | ||
uses: thedoctor0/zip-release@master | ||
with: | ||
type: 'zip' | ||
filename: 'btcpay.ocmod.zip' | ||
exclusions: '*.git* *.github* composer.*' | ||
- name: Upload artifact to release page. | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: 'btcpay.ocmod.zip' | ||
token: ${{ secrets.GITHUB_TOKEN }} |