Skip to content

Commit

Permalink
パッケージのディレクトリ名にタグを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
okazy committed Aug 31, 2020
1 parent 925e1f6 commit 68b721e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,8 @@ jobs:
- name: Checkout
if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'prereleased' )
uses: actions/checkout@master
with:
path: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }}

- name: Setup PHP
if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'prereleased' )
Expand Down Expand Up @@ -857,7 +859,7 @@ jobs:
working-directory: ../
env:
TAG_NAME: ${{ github.event.release.tag_name }}
REPOSITORY_NAME: ${{ github.event.repository.name }}
PATH_NAME: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }}
run: |
rm -rf $GITHUB_WORKSPACE/.editorconfig
rm -rf $GITHUB_WORKSPACE/.gitignore
Expand Down Expand Up @@ -887,8 +889,8 @@ jobs:
chmod -R o+w $GITHUB_WORKSPACE
echo "complession files..."
tar czfp eccube-$TAG_NAME.tar.gz $REPOSITORY_NAME
zip -ry eccube-$TAG_NAME.zip $REPOSITORY_NAME 1> /dev/null
tar czfp eccube-$TAG_NAME.tar.gz $PATH_NAME
zip -ry eccube-$TAG_NAME.zip $PATH_NAME 1> /dev/null
md5sum eccube-$TAG_NAME.tar.gz | awk '{ print $1 }' > eccube-$TAG_NAME.tar.gz.checksum.md5
md5sum eccube-$TAG_NAME.zip | awk '{ print $1 }' > eccube-$TAG_NAME.zip.checksum.md5
sha1sum eccube-$TAG_NAME.tar.gz | awk '{ print $1 }' > eccube-$TAG_NAME.tar.gz.checksum.sha1
Expand Down

0 comments on commit 68b721e

Please sign in to comment.