Skip to content

Commit 82e94d6

Browse files
updated workflow
1 parent 6af1992 commit 82e94d6

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
tags:
66
- 'v*'
7-
workflow_dispatch:
87

98
permissions:
109
contents: write
@@ -22,6 +21,12 @@ jobs:
2221
- name: Create Zip File
2322
run: zip -r cache-everything-${GITHUB_REF_NAME}.zip plugin/ -x "*.git*" -x "node_modules/*"
2423

24+
- name: List files
25+
run: ls -l
26+
27+
- name: Define GITHUB_REF_NAME
28+
run: echo "GITHUB_REF_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV
29+
2530
- name: Create Release
2631
id: create_release
2732
uses: actions/create-release@v1
@@ -42,4 +47,4 @@ jobs:
4247
upload_url: ${{ steps.create_release.outputs.upload_url }}
4348
asset_path: ./cache-everything-${GITHUB_REF_NAME}.zip
4449
asset_name: cache-everything-${GITHUB_REF_NAME}.zip
45-
asset_content_type: application/zip
50+
asset_content_type: application/zip

0 commit comments

Comments
 (0)