-
-
Notifications
You must be signed in to change notification settings - Fork 18
feat(publish)!: 重提加密浏览器发布与有效期后端支持 #205
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 all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b567edc
feat(publish): 新增加密浏览器只读快照
starsstreaming f303a73
feat(publish): 补齐分享链接有效期后端支持
starsstreaming 3b98bbf
feat(publish): 重提原子选择与统一发布管线
starsstreaming 8269910
fix(publish): apply PR205 review fixes
starsstreaming 830dd60
fix(publish): apply PR206 review fixes
starsstreaming b0ba5a5
Merge branch 'main' into feat/publish-browser-v2
starsstreaming 87d2705
fix(share-web): secure viewer delivery
Ariestar 7782820
chore(stack): sync publish pick base
Ariestar 0c3e4f0
docs(publish): clarify v2 revoke recovery
Ariestar 6a057aa
fix(share-web): package viewer favicon
Ariestar 730fb7e
chore(stack): sync publish browser base
Ariestar e9a0aab
fix(publish): adapt legacy branch to workset API
Ariestar e206ede
style(core): format merged record modules
Ariestar 29c73ab
fix(stack): restore browser branch boundary
Ariestar ae0dfcf
fix(publish): add operation error context
Ariestar e72be34
fix(publish): index only emitted risks
Ariestar 0b157b4
feat(publish)!: limit client expiry choices
Ariestar 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| name: Share web | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - "share-web/**" | ||
| - ".github/workflows/share-web.yml" | ||
| workflow_dispatch: | ||
| inputs: | ||
| environment: | ||
| description: "Deployment target (dry-run on pull requests; deploy only after approval)" | ||
| required: true | ||
| default: staging | ||
| type: choice | ||
| options: [staging, proxy, production] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: share-web-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| verify: | ||
| name: Verify share web | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: share-web | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - uses: actions/setup-node@v4 | ||
| - run: npm ci | ||
| - run: npm run typecheck | ||
| - run: npm run test | ||
| - run: npm run build | ||
| - run: npx playwright install --with-deps chromium | ||
| - run: npm run e2e | ||
| - run: npx wrangler deploy --dry-run --env staging | ||
|
|
||
| deploy-staging: | ||
| if: github.event_name == 'workflow_dispatch' && inputs.environment == 'staging' | ||
| needs: verify | ||
| runs-on: ubuntu-latest | ||
| environment: staging | ||
| defaults: | ||
| run: | ||
| working-directory: share-web | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - uses: actions/setup-node@v4 | ||
| - run: npm ci | ||
| - run: npm run build | ||
| - run: npm run deploy:staging | ||
| env: | ||
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
|
|
||
| deploy-production: | ||
| if: github.event_name == 'workflow_dispatch' && inputs.environment == 'production' | ||
| needs: verify | ||
| runs-on: ubuntu-latest | ||
| environment: production | ||
| defaults: | ||
| run: | ||
| working-directory: share-web | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - uses: actions/setup-node@v4 | ||
| - run: npm ci | ||
| - run: npm run build | ||
| - run: npm run deploy:production | ||
| env: | ||
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
|
|
||
| deploy-proxy: | ||
| if: github.event_name == 'workflow_dispatch' && inputs.environment == 'proxy' | ||
| needs: verify | ||
| runs-on: ubuntu-latest | ||
| environment: production | ||
| defaults: | ||
| run: | ||
| working-directory: share-web | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - uses: actions/setup-node@v4 | ||
| - run: npm ci | ||
| - run: npm run build | ||
| - run: npm run deploy:proxy | ||
| env: | ||
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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.