tangled
alpha
login
or
join now
geesawra.industries
/
jerry-no
8
fork
atom
A cheap attempt at a native Bluesky client for Android
8
fork
atom
overview
issues
pulls
pipelines
workflows: generate index page
geesawra.industries
5 months ago
71de606c
7358123d
1/1
build.yaml
success
1m 38s
+29
-1
2 changed files
expand all
collapse all
unified
split
.tangled
workflows
build.yaml
generate-root.sh
+3
-1
.tangled/workflows/build.yaml
···
27
27
npm i -D wrangler@latest
28
28
29
29
fastlane release_bin
30
30
-
npx wrangler r2 object put monarch-releases/monarch-release.apk --remote true --file=app/build/outputs/apk/release/app-release.apk
30
30
+
bash ./generate-root.sh
31
31
+
npx wrangler r2 object put monarch-releases/monarch-release-$(date +%s).apk --remote true --file=app/build/outputs/apk/release/app-release.apk
32
32
+
npx wrangler r2 object put monarch-releases/index.html --remote true --file=./index.html
+26
generate-root.sh
···
1
1
+
#!/bin/bash
2
2
+
3
3
+
# Get the current UNIX timestamp
4
4
+
TIMESTAMP=$(date +%s)
5
5
+
6
6
+
# Define the output filename
7
7
+
OUTPUT_FILE="index.html"
8
8
+
9
9
+
# Create the HTML file with a HERE document
10
10
+
cat > $OUTPUT_FILE <<EOF
11
11
+
<!DOCTYPE html>
12
12
+
<html lang="en">
13
13
+
<head>
14
14
+
<meta charset="UTF-8">
15
15
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
16
16
+
<title>Download</title>
17
17
+
</head>
18
18
+
<body>
19
19
+
<!-- File generated at UNIX timestamp: $TIMESTAMP -->
20
20
+
<a href="/monarch-release.apk">Download Monarch APK</a>
21
21
+
</body>
22
22
+
</html>
23
23
+
EOF
24
24
+
25
25
+
# Print a confirmation message to the console
26
26
+
echo "Successfully created $OUTPUT_FILE"