diff --git a/.github/workflows/load.yaml b/.github/workflows/load.yaml deleted file mode 100644 index 0143b2b402..0000000000 --- a/.github/workflows/load.yaml +++ /dev/null @@ -1,34 +0,0 @@ -# SPDX-FileCopyrightText: © 2022–2023 Kevin Lu -# SPDX-Licence-Identifier: AGPL-3.0-or-later -name: Load cached data -on: - workflow_dispatch: - repository_dispatch: - types: - - update -jobs: - load: - runs-on: ubuntu-latest - defaults: - run: - working-directory: yaml-yugi - steps: - - uses: actions/checkout@v4 - with: - path: yaml-yugi - - uses: actions/checkout@v4 - with: - path: aggregate - ref: aggregate - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: yarn - cache-dependency-path: yaml-yugi/yarn.lock - - run: yarn - - name: Load (push) - env: - OPENSEARCH_URL: ${{ secrets.OS_URL }} - run: | - yarn ts-node src/load.ts ../aggregate/cards.yaml yu-gi-oh_ocg-tcg - yarn ts-node src/load.ts ../aggregate/rush.yaml yu-gi-oh_rush diff --git a/.github/workflows/merge-manual.yaml b/.github/workflows/merge-manual.yaml deleted file mode 100644 index 4817bb17d8..0000000000 --- a/.github/workflows/merge-manual.yaml +++ /dev/null @@ -1,44 +0,0 @@ -# SPDX-FileCopyrightText: © 2022–2023 Kevin Lu -# SPDX-Licence-Identifier: AGPL-3.0-or-later -name: Merge cached data -on: - workflow_dispatch: - repository_dispatch: - types: - - update - -jobs: - merge: - runs-on: ubuntu-latest - defaults: - run: - working-directory: yaml-yugi - steps: - - uses: actions/checkout@v4 - with: - path: yaml-yugi - - uses: actions/checkout@v4 - with: - path: aggregate - ref: aggregate - - name: Merge JSON (OCG+TCG) - run: | - cd data/cards - node ../../src/merge.js ../../../aggregate/cards.json - - name: Merge JSON (Rush) - run: | - cd data/rush - node ../../src/merge.js ../../../aggregate/rush.json - - name: Merge YAML - run: | - sed -s '1i---' data/cards/*.yaml > ../aggregate/cards.yaml - sed -s '1i---' data/rush/*.yaml > ../aggregate/rush.yaml - - working-directory: aggregate - name: Commit aggregate - run: | - git config user.name GitHub Actions - git config user.email noreply@github.com - git add . - git commit -m "Merge: ${{ github.run_number }} (${{ github.run_id }})" -m "$(git -C ../yaml-yugi rev-parse @)" - git pull --rebase origin aggregate - git push diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml deleted file mode 100644 index 5d501a0b30..0000000000 --- a/.github/workflows/publish.yaml +++ /dev/null @@ -1,36 +0,0 @@ -# SPDX-FileCopyrightText: © 2022 Kevin Lu -# SPDX-Licence-Identifier: AGPL-3.0-or-later -name: Publish GitHub Pages site - -on: - workflow_dispatch: - -jobs: - upload: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - path: yaml-yugi - - uses: actions/checkout@v4 - with: - path: aggregate - ref: aggregate - - run: cp aggregate/* yaml-yugi/data - - uses: actions/upload-pages-artifact@v3 - with: - path: yaml-yugi/data - deploy-pages: - needs: upload - # Grant GITHUB_TOKEN the permissions required to make a Pages deployment - permissions: - pages: write # to deploy to Pages - id-token: write # to verify the deployment originates from an appropriate source - # Deploy to the github-pages environment - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - uses: actions/deploy-pages@v4 - id: deployment