Repository navigation
feat: prepare Worker API for release #60
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
28 commits
Select commit
Hold shift + click to select a range
2e8470e
feat(leaderboards): add clan capital gold ranking
MagicTheDev e86858c
fix(api): keep capital gold ingestion in tracking
MagicTheDev e4dc42d
test(api): cover capital gold routes
MagicTheDev c8457e6
Codex worktree snapshot: archive-cleanup
MagicTheDev 311584d
Preserve current Effect rewrite implementation for repo handoff
MagicTheDev b4ef578
feat: prepare Worker API for release
MagicTheDev 3ae5ccf
fix: restore Swagger introduction
MagicTheDev 5c84da9
chore: align API release version
MagicTheDev 9523dc4
fix: satisfy API security checks
MagicTheDev a9d24a4
docs: remove obsolete repository guides
MagicTheDev f89281a
fix: configure Worker deployment
MagicTheDev c80104a
fix: remove worker background dependencies
MagicTheDev 55eb6b6
test: update private proxy origin
MagicTheDev 17cd2fc
fix: use canonical rows for database coordination
MagicTheDev 4f80cf2
fix: order discord cache observations
MagicTheDev d2ac65b
fix: require worker auth secrets
MagicTheDev 1201a28
feat: complete Effect worker API rewrite
MagicTheDev 77ad809
fix: preserve immutable API package releases
MagicTheDev 2a8d2bc
feat: automate versioned API releases
MagicTheDev 0182dd4
fix: pin API CI to compatible schema
MagicTheDev 1a742d5
fix: harden local auth synchronization
MagicTheDev 29097e1
fix: stream PostgreSQL reads without deadlock
MagicTheDev d5154ee
fix: address worker review findings
MagicTheDev 867a1d1
refactor: load static metadata from r2
MagicTheDev 2467b32
fix: load roster metadata after authorization
MagicTheDev bd5c0a7
test: provide roster metadata fixtures
MagicTheDev 61faa97
test: seed league metadata fixtures
MagicTheDev e56bd7a
test: seed static metadata in sql suites
MagicTheDev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
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 was deleted.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| name: Release API packages | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
| workflow_call: | ||
| inputs: | ||
| release_tag: | ||
| description: Existing GitHub Release tag to package | ||
| required: true | ||
| type: string | ||
| workflow_dispatch: | ||
| inputs: | ||
| release_tag: | ||
| description: Existing GitHub Release tag to rebuild and upload | ||
| required: true | ||
| type: string | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| concurrency: | ||
| group: api-package-release-${{ github.event.release.tag_name || inputs.release_tag }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| package: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| RELEASE_TAG: ${{ github.event.release.tag_name || inputs.release_tag }} | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| with: | ||
| ref: refs/tags/${{ env.RELEASE_TAG }} | ||
|
|
||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 26 | ||
| cache: npm | ||
|
|
||
| - run: npm ci --strict-peer-deps | ||
| - run: node --test scripts/api-package-release.test.mjs | ||
| - run: npm run typecheck && npm test && npm run test:scripts && npm run lint | ||
| - run: npm run openapi:check | ||
| - name: Record the checked-out release commit | ||
| run: echo "SOURCE_COMMIT=$(git rev-parse HEAD)" >> "$GITHUB_ENV" | ||
| - name: Build and pack the matching release packages | ||
| id: packages | ||
| env: | ||
| SOURCE_TAG: ${{ env.RELEASE_TAG }} | ||
| run: node scripts/api-package-release.mjs prepare | ||
|
|
||
| - name: Preserve the exact release artifacts and manifest | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: api-packages-${{ github.sha }}-${{ github.run_attempt }} | ||
| path: ${{ steps.packages.outputs.directory }} | ||
| if-no-files-found: error | ||
|
|
||
| - name: Verify and attach immutable archives to the GitHub Release | ||
| env: | ||
| PACKAGE_DIRECTORY: ${{ steps.packages.outputs.directory }} | ||
| SOURCE_TAG: ${{ env.RELEASE_TAG }} | ||
| GH_TOKEN: ${{ github.token }} | ||
| GH_REPO: ${{ github.repository }} | ||
| run: | | ||
| node scripts/api-package-release.mjs verify "$PACKAGE_DIRECTORY" | ||
| gh release upload "$RELEASE_TAG" "$PACKAGE_DIRECTORY"/*.tgz "$PACKAGE_DIRECTORY/manifest.json" |
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.