Skip to content

Commit 9f8f492

Browse files
パッケージング用のworkflowを追加
1 parent 853afba commit 9f8f492

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Packaging for EC-CUBE Plugin
2+
on:
3+
release:
4+
types: [ published ]
5+
jobs:
6+
deploy:
7+
name: Build
8+
runs-on: ubuntu-18.04
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Packaging
13+
working-directory: ../
14+
run: |
15+
rm -rf $GITHUB_WORKSPACE/.github
16+
find $GITHUB_WORKSPACE -name "dummy" -delete
17+
find $GITHUB_WORKSPACE -name ".git*" -and ! -name ".gitkeep" -print0 | xargs -0 rm -rf
18+
chmod -R o+w $GITHUB_WORKSPACE
19+
cd $GITHUB_WORKSPACE
20+
tar cvzf ../${{ github.event.repository.name }}-${{ github.event.release.tag_name }}.tar.gz ./*
21+
- name: Upload binaries to release of TGZ
22+
uses: svenstaro/upload-release-action@v1-release
23+
with:
24+
repo_token: ${{ secrets.GITHUB_TOKEN }}
25+
file: ${{ runner.workspace }}/${{ github.event.repository.name }}-${{ github.event.release.tag_name }}.tar.gz
26+
asset_name: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }}.tar.gz
27+
tag: ${{ github.ref }}
28+
overwrite: true

0 commit comments

Comments
 (0)