-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (33 loc) · 993 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build release artifact.
on:
release:
types: [ published ]
jobs:
tag:
name: Build release
runs-on: ubuntu-latest
permissions:
contents: write
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.* README.md'
- name: Upload artifact to release page.
uses: ncipollo/release-action@v1
with:
artifacts: 'btcpay.ocmod.zip'
removeArtifacts: true
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}