forked from moonlight-mod/extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
148 additions
and
181 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Process new extensions | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy extensions | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout extensions | ||
uses: actions/checkout@v3 | ||
- name: Checkout dist | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: moonlight-mod/extensions-dist | ||
path: dist | ||
ref: main | ||
ssh-key: ${{ secrets.DIST_SSH_KEY }} | ||
persist-credentials: true | ||
- name: Checkout runner | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: moonlight-mod/extensions-runner | ||
path: runner | ||
ref: main | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: pnpm | ||
|
||
- name: Setup Docker buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build runner Docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ${{ github.workspace }}/runner | ||
file: ${{ github.workspace }}/runner/Dockerfile | ||
push: false | ||
tags: moonlight-mod/extensions-runner:latest | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
||
- name: Run runner | ||
env: | ||
EXT_MANIFESTS_PATH: ${{ github.workspace }}/exts | ||
EXT_DIST_PATH: ${{ github.workspace }}/dist | ||
EXT_WORK_PATH: ${{ github.workspace }}/work | ||
run: | | ||
cd $EXT_RUNNER_PATH | ||
pnpm run runner | ||
cd $EXT_MANIFESTS_PATH | ||
- name: Upload changed asars | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: asars | ||
path: ${{ github.workspace }}/work/changed/*.asar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Process new extensions | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy extensions | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout extensions | ||
uses: actions/checkout@v3 | ||
- name: Checkout dist | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: moonlight-mod/extensions-dist | ||
path: dist | ||
ref: main | ||
ssh-key: ${{ secrets.DIST_SSH_KEY }} | ||
persist-credentials: true | ||
- name: Checkout runner | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: moonlight-mod/extensions-runner | ||
path: runner | ||
ref: main | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: pnpm | ||
|
||
- name: Setup Docker buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build runner Docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ${{ github.workspace }}/runner | ||
file: ${{ github.workspace }}/runner/Dockerfile | ||
push: false | ||
tags: moonlight-mod/extensions-runner:latest | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
||
- name: Run runner | ||
env: | ||
EXT_MANIFESTS_PATH: ${{ github.workspace }}/exts | ||
EXT_DIST_PATH: ${{ github.workspace }}/dist | ||
EXT_WORK_PATH: ${{ github.workspace }}/work | ||
run: | | ||
cd $EXT_RUNNER_PATH | ||
pnpm run runner | ||
cd $EXT_MANIFESTS_PATH | ||
- name: Upload changed asars | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: asars | ||
path: ${{ github.workspace }}/work/changed/*.asar | ||
|
||
- name: Commit dist | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.DIST_TOKEN }} | ||
directory: dist | ||
repository: moonlight-mod/extensions-dist | ||
ssh: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/node_modules | ||
# Built by CI | ||
/exts/repo.json | ||
/dist | ||
/runner | ||
/work |
This file was deleted.
Oops, something went wrong.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"repository": "https://github.com/Cynosphere/moonlight-extensions.git", | ||
"commit": "accf381859ca72eb624abc9ce04ec30c21982a87", | ||
"scripts": ["build", "repo"], | ||
"artifact": "repo/platformStyles.asar" | ||
} |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.