-
Notifications
You must be signed in to change notification settings - Fork 23
46 lines (38 loc) · 1.3 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
name: Build
on:
release:
types:
- created
jobs:
check-release:
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Install dependencies
run: |
composer install --no-dev
rm -rf vendor/ -R
rm -rf .git/ -R
- name: Change permissions for release.sh
run: chmod 755 .github/workflows/release.sh
- name: Create Release Artifact
run: |
VERSION=${{ github.ref }}
VERSION=${VERSION#"refs/tags/v"}
mkdir /home/runner/work/release
zip -r /home/runner/work/release/${VERSION}.zip ./
echo "::set-output name=artifact_name::${VERSION}.zip"
shell: bash
- name: Upload Release Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ steps.create_artifact.outputs.artifact_name }}
path: /home/runner/work/release/${{ steps.create_artifact.outputs.artifact_name }}
- name: Copy the files directory with the Git repository to a new subversion tag
env:
SLUG: bitpay-checkout-for-woocommerce
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
run: $GITHUB_WORKSPACE/.github/workflows/release.sh
shell: bash