From 0e819af8a696ebb32fe4ee2becd6211ca0169d1d Mon Sep 17 00:00:00 2001 From: shiro Date: Wed, 27 Mar 2024 14:18:14 +0900 Subject: [PATCH] Add CI --- .github/FUNDING.yml | 12 ++++++++++++ .github/workflows/CI.yml | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/CI.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..184f1ff --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: "shiroi_usagi" +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # ["https://ko-fi.com/shiroi_usagi"] diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..2757396 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,39 @@ +name: Build package + +on: + push: + branches: [ master ] + tags: [ '*' ] + pull_request: + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Git checkout + uses: actions/checkout@v3 + - name: install + run: yarn --frozen-lockfile + + - name: build + run: yarn build + env: + BASE_PATH: /my-app/ + + - name: create .nojekyll + run: touch .output/public/.nojekyll + + - name: deploy pages + uses: JamesIves/github-pages-deploy-action@v4.5.0 + with: + branch: master + folder: .output/public +