Skip to content

Commit 67ffc04

Browse files
update workflows
1 parent d0d769d commit 67ffc04

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
uses: actions/checkout@v4
2323
- name: Setup Pages
2424
uses: actions/configure-pages@v5
25+
- name: Remove test page
26+
run: rm -f -v website/test.md
27+
shell: bash
2528
- name: Generate with _just
2629
uses: js-just/_just@main
2730
with:

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test website
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: ${{ github.ref }}-test-website
10+
cancel-in-progress: true
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Generate with _just
19+
uses: js-just/_just@main
20+
with:
21+
path: website
22+
commit:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: actions/setup-node@v4
27+
- name: Commit
28+
uses: cpina/github-action-push-to-another-repository@main
29+
with:
30+
source-directory: "website"
31+
destination-github-username: js-just
32+
destination-repository-name: test
33+
user-email: "[email protected]"
34+
user-name: "GitHub Actions"
35+
env:
36+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}

0 commit comments

Comments
 (0)