Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/publish-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ jobs:
with:
name: dist-files
path: dist/

- name: Upload function artifacts
uses: actions/upload-artifact@v4
with:
name: function-files
path: functions/

deploy:
needs: publish
runs-on: ubuntu-latest
Expand All @@ -52,9 +59,18 @@ jobs:
name: dist-files
path: dist/

- name: Download function artifacts
uses: actions/download-artifact@v4
with:
name: function-files
path: functions/

- name: "List publish directory contents"
run: ls -R dist

- name: "List functions directory contents"
run: ls -R functions

- name: Deploy to Cloudflare pages
uses: cloudflare/wrangler-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ cd ArmoryNodeWebsite
2. Build and run the project
```bash
# Use this command to build and run the project
wrangler pages dev
deno task run

# Use this command if you only wish to generate the javascript and css
# (e.g. using your own web server)
Expand Down
1 change: 0 additions & 1 deletion publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ async function publish() {
console.log("🚀 Publishing files to `dist/`...");
await Deno.mkdir("./dist", { recursive: true });
await fs.copy("./static", "./dist/static", { overwrite: true });
await fs.copy("./functions", "./dist/functions", { overwrite: true });
await fs.copy("./wrangler.toml", "./dist/wrangler.toml", { overwrite: true });

// Move _headers to the root of dist
Expand Down
2 changes: 1 addition & 1 deletion run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ async function runTasks() {
await compile();

// Run wrangler
console.log("\n🤠 Running Wrangler...");
console.log("🤠 Running Wrangler...");
const wranglerStep = new Deno.Command("npx", {
args: ["wrangler", "pages", "dev"],
stdout: "inherit",
Expand Down
2 changes: 1 addition & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "armorynode"
pages_build_output_dir = "static"
compatibility_date = "2023-11-15"
compatibility_date = "2024-11-11"

[vars]
NODE_VERSION = "22.13.1"
Expand Down
Loading