summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cd.yml7
-rw-r--r--.github/workflows/ci.yml11
-rw-r--r--.github/workflows/manual-build.yml50
3 files changed, 62 insertions, 6 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index aa7a220..22e4934 100644
--- a/.github/workflows/cd.yml
+++ b/.github/workflows/cd.yml
@@ -49,14 +49,15 @@ jobs:
git config --global url."https://github.com/".insteadOf ssh://[email protected]/
git config --global url."https://".insteadOf git://
git config --global url."https://".insteadOf ssh://
- npm install
- npm run build
- npm run export
+ yarn install
+ yarn run build
+ yarn run export
- name: '[Add GitHub Sponsors to Readme]'
uses: JamesIves/[email protected]
with:
token: ${{secrets.PAT}}
file: 'README.md'
+ minimum: 500
- name: '[commit changes]'
run: |
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 408ccf7..6560449 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -7,6 +7,7 @@ on:
branches:
- '**'
- '!main'
+ workflow_dispatch:
defaults:
run:
shell: 'bash'
@@ -36,6 +37,10 @@ jobs:
uses: 'actions/checkout@v2'
with:
repository: '${{ github.repository }}'
+ - name: '[setup node]'
+ uses: 'actions/setup-node@v2'
+ with:
+ node-version: '16'
- name: '[lint]'
run: |
echo TBA some linting
@@ -47,8 +52,8 @@ jobs:
git config --global url."https://github.com/".insteadOf ssh://[email protected]/
git config --global url."https://".insteadOf git://
git config --global url."https://".insteadOf ssh://
- npm install
- npm run build
- npm run export
+ yarn install
+ yarn run build
+ yarn run export
...
# End of ci.yml
diff --git a/.github/workflows/manual-build.yml b/.github/workflows/manual-build.yml
new file mode 100644
index 0000000..f2951ab
--- /dev/null
+++ b/.github/workflows/manual-build.yml
@@ -0,0 +1,50 @@
+---
+# File : cd.yml
+
+name: 'cd'
+on:
+ workflow_dispatch:
+defaults:
+ run:
+ shell: 'bash'
+jobs:
+ build-deploy:
+ name: '[cd|build-deploy]'
+ runs-on: 'ubuntu-latest'
+ steps:
+ - name: '[checkout] ${{ github.repository }} project'
+ uses: 'actions/checkout@v2'
+ with:
+ repository: '${{ github.repository }}'
+ - name: '[setup node]'
+ uses: 'actions/setup-node@v2'
+ with:
+ node-version: '16'
+ - name: '[build]'
+ run: |
+ git config --global url."https://github.com/".insteadOf ssh://[email protected]/
+ git config --global url."https://".insteadOf git://
+ git config --global url."https://".insteadOf ssh://
+ npm install
+ npm run build
+ npm run export
+ - name: '[Add GitHub Sponsors to Readme]'
+ uses: JamesIves/[email protected]
+ with:
+ token: ${{secrets.PAT}}
+ file: 'README.md'
+ minimum: 500
+
+ - name: '[commit changes]'
+ run: |
+ git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
+ git config --local user.name "github-actions[bot]"
+ git add .
+ git commit -m "chore: build" -a
+ - name: '[push changes]'
+ uses: ad-m/github-push-action@master
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ branch: ${{ github.ref }}
+...
+# End of cd.yml