Skip to content

Commit

Permalink
NOJIRA | Stop exposing unnecessary files. | [Ray]
Browse files Browse the repository at this point in the history
  • Loading branch information
RaycatWhoDat committed Sep 6, 2024
1 parent 439d2fd commit 42d0a14
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.'
path: './public'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
4 changes: 2 additions & 2 deletions build-rss-feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require('path');
const numberOfEntries = 15;

console.log('Reading games.csv...');
const rawCsvFile = fs.readFileSync(path.resolve(__dirname, 'games.csv'), 'utf-8').split('\n') ?? [];
const rawCsvFile = fs.readFileSync(path.resolve(__dirname, 'public/games.csv'), 'utf-8').split('\n') ?? [];
let currentGameNumber = rawCsvFile.length - 2;
const entries = rawCsvFile.slice(1, numberOfEntries + 1);

Expand Down Expand Up @@ -48,5 +48,5 @@ const rssFeed = [
].join('\n');

console.log('Writing RSS feed to file...');
fs.writeFileSync(path.resolve(__dirname, 'feed.xml'), rssFeed);
fs.writeFileSync(path.resolve(__dirname, 'public/feed.xml'), rssFeed);
console.log('Done.');
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 42d0a14

Please sign in to comment.