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