summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/cd.yml74
-rw-r--r--.github/workflows/ci.yml60
-rw-r--r--.github/workflows/label-sponsors.yml14
-rw-r--r--.github/workflows/manual-build.yml50
4 files changed, 0 insertions, 198 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
deleted file mode 100644
index 22e4934..0000000
--- a/.github/workflows/cd.yml
+++ /dev/null
@@ -1,74 +0,0 @@
----
-# File : cd.yml
-
-name: 'cd'
-on:
- push:
- branches: [main]
-defaults:
- run:
- shell: 'bash'
-jobs:
- changes:
- runs-on: 'ubuntu-latest'
- outputs:
- ts: ${{ steps.filter.outputs.ts }}
- steps:
- - uses: actions/checkout@v2
- - name: '[check if build necessary]'
- uses: dorny/paths-filter@v2
- id: filter
- with:
- filters: |
- ts:
- - '**.ts'
- - '**.tsx'
- - '**.json'
- build-deploy:
- name: '[cd|build-deploy]'
- runs-on: 'ubuntu-latest'
- needs: changes
- if: ${{ needs.changes.outputs.ts == 'true' }}
- 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: '[lint]'
- run: |
- echo TBA some linting
- - name: '[test]'
- run: |
- echo TBA some testing
- - 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://
- 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: |
- 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
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
deleted file mode 100644
index 4d97cf4..0000000
--- a/.github/workflows/ci.yml
+++ /dev/null
@@ -1,60 +0,0 @@
----
-# File : ci.yml
-
-name: 'ci'
-on:
- push:
- branches:
- - '**'
- - '!main'
- pull_request:
- workflow_dispatch:
-defaults:
- run:
- shell: 'bash'
-jobs:
- changes:
- runs-on: 'ubuntu-latest'
- outputs:
- ts: ${{ steps.filter.outputs.ts }}
- steps:
- - uses: actions/checkout@v2
- - name: '[check if build necessary]'
- uses: dorny/paths-filter@v2
- id: filter
- with:
- filters: |
- ts:
- - '**.ts'
- - '**.tsx'
- - '**.json'
- lint-test-build:
- name: '[ci|lint-test-build]'
- runs-on: 'ubuntu-latest'
- needs: changes
- if: ${{ needs.changes.outputs.ts == 'true' }}
- 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: '[lint]'
- run: |
- echo TBA some linting
- - name: '[test]'
- run: |
- echo TBA some testing
- - 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://
- yarn install
- yarn run build
- yarn run export
-...
-# End of ci.yml
diff --git a/.github/workflows/label-sponsors.yml b/.github/workflows/label-sponsors.yml
deleted file mode 100644
index 10abb72..0000000
--- a/.github/workflows/label-sponsors.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-name: Label sponsors
-on:
- pull_request:
- types: [opened]
- issues:
- types: [opened]
-jobs:
- build:
- name: is-sponsor-label
- runs-on: ubuntu-latest
- steps:
- - uses: JasonEtco/is-sponsor-label-action@v1
- env:
- GITHUB_TOKEN: ${{ secrets.PAT }}
diff --git a/.github/workflows/manual-build.yml b/.github/workflows/manual-build.yml
deleted file mode 100644
index f2951ab..0000000
--- a/.github/workflows/manual-build.yml
+++ /dev/null
@@ -1,50 +0,0 @@
----
-# 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