Skip to content

Commit 6090479

Browse files
committed
updates
1 parent e0a0a49 commit 6090479

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/website.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Push to website
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
paths:
7+
- "index.js"
8+
- "index.min.js"
9+
- "index.d.ts"
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: "pages"
19+
cancel-in-progress: false
20+
21+
jobs:
22+
node:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
- run: bash website/copy.sh
28+
- uses: cpina/github-action-push-to-another-repository@main
29+
env:
30+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
31+
with:
32+
source-directory: "scripts"
33+
destination-github-username: JustDeveloper1
34+
destination-repository-name: "JSSC.js.org"
35+
user-email: "justdeveloper@juststudio.is-a.dev"
36+
target-branch: "gh-pages"
37+
target-directory: "jssc"

website/copy.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
mkdir scripts
2+
cp index.js scripts/jssc.js
3+
cp index.min.js scripts/jssc.min.js
4+
cp index.d.ts scripts/jssc.d.ts

0 commit comments

Comments
 (0)