From fb3fc03d49b0374bf5fb356a705df6fc20b9fc58 Mon Sep 17 00:00:00 2001 From: Sophie Mondz Date: Tue, 26 Apr 2022 17:23:32 -0500 Subject: [PATCH] Automate website updates! hell yeah! --- .github/workflows/deployment.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/deployment.yml diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml new file mode 100644 index 0000000..b239b4e --- /dev/null +++ b/.github/workflows/deployment.yml @@ -0,0 +1,25 @@ +name: Deploy to Neocities +on: + push: + branches: + - system64.neocities.org +jobs: + Deploy: + runs-on: ubuntu-latest + steps: + - run: echo "Yooo new site update, I gotchu." + - name: Use Node.JS :) + uses: actions/setup-node@v1 + with: + node-version: 12 + - name: Install dependents and build. + run: | + npm i + npm run build + - name: Deploy to Neocities + uses: bcomnes/deploy-to-neocities@v1.1.4 + with: + api_token: ${{ secrets.NEOCITIES_API_TOKEN }} + cleanup: false + dist_dir: public + - run: echo "Done!"