Yes, I stole this.

This commit is contained in:
Sophie Mondz 2022-04-26 17:28:10 -05:00 committed by GitHub
parent f5cb057aa8
commit d436add070
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,25 +1,35 @@
name: Deploy to Neocities name: Deploy to neocities
# only run on changes to master
on: on:
push: push:
branches: branches:
- system64.neocities.org - system64.neocities.org
concurrency: # prevent concurrent deploys doing strange things
group: deploy-to-neocities
cancel-in-progress: true
jobs: jobs:
Deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: echo "Yooo new site update, I gotchu." - uses: actions/checkout@v1
- name: Use Node.JS :) # Set up any tools and build steps here
uses: actions/setup-node@v1 # This example uses a Node.js toolchain to build a site
with: - name: Use Node.js
node-version: 12 uses: actions/setup-node@v1
- name: Install dependents and build. with:
run: | node-version: 12
npm i - name: Install deps and build
npm run build run: |
- name: Deploy to Neocities npm i
uses: bcomnes/deploy-to-neocities@v1.1.4 npm run build
with: # When the dist_dir is ready, deploy it to neocities
api_token: ${{ secrets.NEOCITIES_API_TOKEN }} - name: Deploy to neocities
cleanup: false uses: bcomnes/deploy-to-neocities@v1
dist_dir: public with:
- run: echo "Done!" api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: false
dist_dir: public