diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2cba45c..38a3039 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,7 @@ jobs: needs: sync-branches strategy: matrix: + mode: ["STANDARD", "ESR"] include: - name: "Lepton" branch: "master" @@ -55,6 +56,20 @@ jobs: echo -e "[Info]\nVer=${TAGVER}\nBranch=${BRANCH}" > LEPTON + - name: Processing for STANDARD + if: matrix.mode == 'STANDARD' + run: | + rm css/leptonChromeESR.css + rm css/leptonContentESR.css + + - name: Processing for ESR + if: matrix.mode == 'ESR' + run: | + sed -i "s/\.css/ESR\.css/g" userChrome.css + sed -i "s/\.css/ESR\.css/g" userContent.css + rm css/leptonChrome.css + rm css/leptonContent.css + - name: Release Structure run: | # Remove unnecessary files @@ -73,9 +88,17 @@ jobs: zip -rv ${{ matrix.name }}.zip chrome CREDITS LICENSE user.js install.sh install.ps1 - uses: softprops/action-gh-release@v1 # actions/create-release, actions/upload-release-asset is deprecated - if: startsWith(github.ref, 'refs/tags/') + if: matrix.mode == 'STANDARD' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: files: | ${{ matrix.name }}.zip + + - uses: softprops/action-gh-release@v1 + if: matrix.mode == 'ESR' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + files: | + ${{ matrix.name }}-ESR.zip diff --git a/package.json b/package.json index 8a02c68..78f4891 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Lepton", - "version": "7.0.0", + "version": "8.0.0", "description": "I respect proton UI and aim to improve it. ", "author": "alstjr7375 ", "license": "MPL 2.0",