From 6ac8adf7be51ab97043e365a259300c79f2fe3de Mon Sep 17 00:00:00 2001 From: Nickwasused Date: Thu, 15 Dec 2022 15:27:08 +0100 Subject: [PATCH] generate file in folder --- .github/workflows/generate.yml | 4 ++-- index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index ba9361f..8192f4f 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -19,10 +19,10 @@ jobs: - name: Release uses: fnkr/github-action-ghr@v1 env: - GHR_PATH: stations.json + GHR_PATH: json_out/ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: stations.json \ No newline at end of file + publish_dir: json_out/ \ No newline at end of file diff --git a/index.ts b/index.ts index d2dd7f1..5f76735 100644 --- a/index.ts +++ b/index.ts @@ -75,4 +75,4 @@ const unique_station_data = deduplicate_stations(filtered_station_data); console.log(`got ${unique_station_data.length} stations`) -Deno.writeTextFile("./stations.json", JSON.stringify(unique_station_data)) \ No newline at end of file +Deno.writeTextFile("./json_out/stations.json", JSON.stringify(unique_station_data)) \ No newline at end of file