Skip to content

Commit a8b0563

Browse files
committed
Set up new website action
1 parent 5a72741 commit a8b0563

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy old website to neociteis
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
env:
9+
FORCE_COLOR: 1
10+
11+
concurrency: # prevent concurrent deploys doing starnge things
12+
group: deploy-to-neocities-old
13+
cancel-in-progress: true
14+
15+
jobs:
16+
deploy:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Use Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version-file: package.json
26+
check-latest: true
27+
- run: npm i
28+
- run: npm run build
29+
30+
- name: Deploy to neocities
31+
uses: bcomnes/deploy-to-neocities@v3
32+
with:
33+
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
34+
cleanup: true
35+
neocoties_supporter: true
36+
preview_before_deploy: true

.github/workflows/neocities.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Deploy to neociteis
1+
name: Deploy domstack website to neociteis
22

33
on:
44
push:
55
branches:
6-
- master
6+
- next
77

88
env:
99
FORCE_COLOR: 1
@@ -30,7 +30,7 @@ jobs:
3030
- name: Deploy to neocities
3131
uses: bcomnes/deploy-to-neocities@v3
3232
with:
33-
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
33+
api_token: ${{ secrets.NEOCITIES_DOMSTACK_API_TOKEN }}
3434
cleanup: true
3535
neocoties_supporter: true
3636
preview_before_deploy: true

0 commit comments

Comments
 (0)