Skip to content

Commit e30cf6f

Browse files
committed
Fix: workflow invalid update
1 parent eb68280 commit e30cf6f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/release.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ jobs:
1515
branch: "photon-style"
1616
steps:
1717
- uses: actions/checkout@v2
18-
ref: ${{ matrix.branch }}
18+
with:
19+
ref: ${{ matrix.branch }}
1920

2021
- name: Release Structure
2122
run: |
2223
mkdir -v chrome
23-
mv -v * chrome/
24-
mv -v chrome/user.js .
25-
zip chrome user.js --out ${{ matrix.name }}.zip
24+
25+
shopt -s extglob
26+
mv -v !(chrome|user.js) chrome/
27+
28+
zip -rv ${{ matrix.name }}.zip chrome user.js
2629
2730
- uses: softprops/action-gh-release@v1 # actions/create-release, actions/upload-release-asset is deprecated
2831
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)