-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (44 loc) · 1.46 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Release
run-name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Get composer cache directory
- id: get-composer-cache-directory
name: Get Composer caches directory path
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
shell: bash
# Mount composer cache directory
- id: mount-composer-cache-directory
name: Mount composer cache directory
uses: actions/cache@v3
with:
path: ${{ steps.get-composer-cache-directory.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
# Mount composer cache directory
- id: mount-npm-cache-directory
name: Mount npm cache directory
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Zip code
run: |
chmod 777 ./bin/zip.sh
sudo bash ./bin/zip.sh
shell: bash
- uses: ncipollo/release-action@v1
with:
artifactErrorsFailBuild: true
allowUpdates: true
artifacts: "./build/reepay-checkout-gateway.zip"