Skip to content

Commit 735ddf7

Browse files
committed
ci: publish apk without zipped artifacts
1 parent d0f4880 commit 735ddf7

1 file changed

Lines changed: 0 additions & 41 deletions

File tree

.github/workflows/build-apk.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
workflow_dispatch:
77

88
permissions:
9-
actions: write
109
contents: write
1110

1211
jobs:
@@ -41,20 +40,6 @@ jobs:
4140
UPDATE_MANIFEST_URL: https://github.com/${{ github.repository }}/releases/download/app-latest/app-manifest.json
4241
run: nix develop --command ./gradlew assembleRelease
4342

44-
- name: Upload Debug APK
45-
uses: actions/upload-artifact@v4
46-
with:
47-
name: debug-apk-${{ github.sha }}
48-
path: app/build/outputs/apk/debug/*.apk
49-
retention-days: 7
50-
51-
- name: Upload Release APK
52-
uses: actions/upload-artifact@v4
53-
with:
54-
name: release-apk-${{ github.sha }}
55-
path: app/build/outputs/apk/release/*.apk
56-
retention-days: 7
57-
5843
- name: Publish rolling app-latest release
5944
if: github.ref == 'refs/heads/main'
6045
env:
@@ -92,29 +77,3 @@ jobs:
9277
--prerelease \
9378
dist/app.apk \
9479
dist/app-manifest.json
95-
96-
cleanup:
97-
runs-on: [self-hosted, nix]
98-
needs: build
99-
steps:
100-
- uses: actions/github-script@v7
101-
with:
102-
script: |
103-
const artifacts = await github.rest.actions.listArtifactsForRepo({
104-
owner: context.repo.owner,
105-
repo: context.repo.repo,
106-
per_page: 100,
107-
});
108-
const now = Date.now();
109-
const sevenDays = 7 * 24 * 60 * 60 * 1000;
110-
for (const artifact of artifacts.data.artifacts) {
111-
const created = new Date(artifact.created_at).getTime();
112-
if (now - created > sevenDays) {
113-
await github.rest.actions.deleteArtifact({
114-
owner: context.repo.owner,
115-
repo: context.repo.repo,
116-
artifact_id: artifact.id,
117-
});
118-
console.log(`Deleted old artifact: ${artifact.name}`);
119-
}
120-
}

0 commit comments

Comments
 (0)