Skip to content

Commit

Permalink
Add Github workflow to build release artifact.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeet committed Oct 3, 2022
1 parent 22214dd commit 928b3b8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
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 }}

0 comments on commit 928b3b8

Please sign in to comment.