Skip to content

Commit

Permalink
generate file in folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickwasused committed Dec 15, 2022
1 parent 713767f commit 6ac8adf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
publish_dir: json_out/
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Deno.writeTextFile("./json_out/stations.json", JSON.stringify(unique_station_data))

0 comments on commit 6ac8adf

Please sign in to comment.