diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b0f68966..ce5e692f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,14 +15,17 @@ jobs: branch: "photon-style" steps: - uses: actions/checkout@v2 - ref: ${{ matrix.branch }} + with: + ref: ${{ matrix.branch }} - name: Release Structure run: | mkdir -v chrome - mv -v * chrome/ - mv -v chrome/user.js . - zip chrome user.js --out ${{ matrix.name }}.zip + + shopt -s extglob + mv -v !(chrome|user.js) chrome/ + + zip -rv ${{ matrix.name }}.zip chrome user.js - uses: softprops/action-gh-release@v1 # actions/create-release, actions/upload-release-asset is deprecated if: startsWith(github.ref, 'refs/tags/')