-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.12 KB
/
deploy.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Deploy to neocities
# run on changes to main branch or when manually triggered
on:
push:
branches:
- main
workflow_dispatch:
env:
FORCE_COLOR: 2
concurrency: # prevent concurrent deploys doing strange things
group: deploy-to-neocities
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- run: bun i --save-dev
- run: bun run build
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: website-artifacts
path: _site
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: website-artifacts
path: _site
- name: List contents of the working directory
run: ls -al
- name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@v2
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: true
dist_dir: _site