summaryrefslogtreecommitdiff
path: root/.github/workflows/main.yml
blob: c85b9a694c44ca2d9985b74d27cabbcc0b1c755a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Deploy to Neocities

# Only run on changes to the main branch
on:
  push:
    branches:
      - master

concurrency: # Prevent concurrent deploys doing strange things
  group: deploy-to-neocities
  cancel-in-progress: true

jobs:
  deploy:
    runs-on: ubuntu-22.04

    steps:
    # Step 1: Check out the repository
    - uses: actions/checkout@v4

    # Step 2: Deploy the 'blog' folder to Neocities
    - name: Deploy to Neocities
      uses: bcomnes/[email protected]
      with:
        api_token: ${{ secrets.NEOCITIES_SECRET }} # neocities API token stored as a secret
        cleanup: false
        dist_dir: blog