From 4c99dde73b49fb79199990692f123749b92619b1 Mon Sep 17 00:00:00 2001 From: Liassica Date: Wed, 10 Jan 2024 20:31:30 -0600 Subject: [PATCH] Add deploy to Neocities workflow --- .gitattributes | 1 + .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .gitattributes create mode 100644 .github/workflows/ci.yml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..39222a4 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +docs/* linguist-documentation=false \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..13c4e67 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +# Author: Bret Comnes +# License: MIT + +name: Deploy to neocities + +# only run on changes to main +on: + push: + branches: + - main + +concurrency: # prevent concurrent deploys doing strange things + group: deploy-to-neocities + cancel-in-progress: true + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + # When the dist_dir is ready, deploy it to neocities + - name: Deploy to neocities + uses: bcomnes/deploy-to-neocities@v1 + with: + api_token: ${{ secrets.NEOCITIES_API_KEY }} + cleanup: true + dist_dir: docs \ No newline at end of file