Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:

- name: Update version in Help.js
run: |
sed -i "s/innerText: \"v.*\"/innerText: \"$PRE_VERSION\"/" scripts/help/jsx/Help.js
sed -i "s/innerText: \"v.*\"/innerText: \"v$PRE_VERSION\"/" scripts/help/jsx/Help.js

- name: Create version bump PR
id: create-pr
Expand Down Expand Up @@ -98,9 +98,22 @@ jobs:
prerelease: true
generate_release_notes: true
target_commitish: dev

publish:
needs: pre-release
runs-on: ubuntu-latest
if: |
github.event.pull_request.merged == true &&
!contains(github.event.pull_request.labels.*.name, 'automated-version-bump')

steps:
- name: Checkout code again
uses: actions/checkout@v4
with:
ref: dev

- name: zip files
run: 7z a SuperEZ_v${{ env.PRE_VERSION }}.zip .
run: 7z a SuperEZ.zip .

- name: publish to Chrome Web Store
uses: mnao305/[email protected]
Expand All @@ -109,4 +122,4 @@ jobs:
client-id: ${{ secrets.CLIENT_ID }}
client-secret: ${{ secrets.CLIENT_SECRET }}
refresh-token: ${{ secrets.REFRESH_TOKEN }}
file-path: ./SuperEZ_v${{ env.PRE_VERSION }}.zip
file-path: ./SuperEZ.zip
2 changes: 1 addition & 1 deletion scripts/help/jsx/Help.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ window.popup.HelpPopup = async function (custom, inner) {
innerText: "Powered by EZ-HKU with ❤️",
}),
window.elements.Div({
innerText: "1.2.0-25-04-15-05-35-58-beta",
innerText: "v1.2.0-25-04-15-05-35-58-beta",
}),
window.elements.A({
href: "https://github.com/EZ-HKU/SuperEZ/wiki",
Expand Down