Repository navigation
Redesign xmoj-script.uk and deploy the site on every push #1043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
40babdc
Redesign xmoj-script.uk in the userscript's monochrome style
boomzero 96c57e1
Deploy the site on every push and keep the backend submodule current
boomzero 527e284
Use real script screenshots in the hero and fix the stretched logo
boomzero 9fca6a0
Address review feedback, feature 短消息在线看, add EU notice
boomzero 3c116a0
Correct short-message visibility: encrypted at rest, admins can't read
boomzero 55d3433
Remove Microsoft Clarity and tighten the privacy notice
boomzero d08da3b
Add Edge 138+ user-script toggle step, lazy-load both hero images, se…
boomzero 5ff72cf
Bump backend to a55c2b0 (session IDs no longer logged)
boomzero 128bc29
Merge remote-tracking branch 'origin/dev' into website-redesign
boomzero cb60e7e
Don't parse legacy EdgeHTML's Edge/ token as a Chromium Edge version
boomzero 865725d
Remove Deploy.yml: Cloudflare Pages' GitHub integration already deploys
boomzero c7549b0
Point confused Chrome/Edge users to the illustrated install guide
boomzero File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: Deploy | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| - dev | ||
|
boomzero marked this conversation as resolved.
Resolved
|
||
| workflow_dispatch: | ||
| jobs: | ||
| # 正式站(www.xmoj-script.uk),只部署 master | ||
| Cloudflare: | ||
|
boomzero marked this conversation as resolved.
Resolved
|
||
| if: github.ref == 'refs/heads/master' | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| deployments: write | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - uses: cloudflare/pages-action@v1 | ||
| with: | ||
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
| accountId: 89969bdf9d5ab8202f8ad8b8ae2c40b8 | ||
| projectName: xmoj-script | ||
| directory: . | ||
| # GitHub Pages(ghpages.xmoj-script.uk),master 和 dev 都部署,与原 Release/Prerelease 行为一致。 | ||
| # 和 Cloudflare 分成两个 job,一边失败不会挡住另一边。 | ||
| GitHubPages: | ||
| runs-on: ubuntu-latest | ||
| # master 与 dev 共用同一个 GitHub Pages 站点,避免两次部署同时进行 | ||
| concurrency: | ||
| group: pages | ||
| cancel-in-progress: false | ||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - uses: actions/configure-pages@v5 | ||
| - uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: . | ||
| - id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| [submodule "backend"] | ||
| path = backend | ||
| url = https://github.com/XMOJ-Script-dev/XMOJ-bbs | ||
| branch = master |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.