profile rating #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compile and deploy | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: deploy-in-neocities | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout live branch | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install deps and build | |
run: | | |
npm i | |
npm run build | |
- name: Generate sitemap | |
uses: cicirello/generate-sitemap@v1 | |
with: | |
base-url-path: https://plurkipedia.neocities.org/ | |
path-to-root: public | |
drop-html-extension: true | |
- name: Deploy to neocities | |
uses: bcomnes/deploy-to-neocities@v3 | |
with: | |
api_key: ${{ secrets.NEOCITIES_API_TOKEN }} | |
cleanup: true | |
dist_dir: public # specify the directory where your site is built |