From c8f68bd1709e98b581ea3fd7ff8c904ff8b87050 Mon Sep 17 00:00:00 2001 From: Nemesis Date: Sun, 19 Feb 2023 20:27:47 +0100 Subject: [PATCH] ci: initial import script --- .github/workflows/import.js.yml | 62 +++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/import.js.yml diff --git a/.github/workflows/import.js.yml b/.github/workflows/import.js.yml new file mode 100644 index 0000000..22d4396 --- /dev/null +++ b/.github/workflows/import.js.yml @@ -0,0 +1,62 @@ +name: Auto import + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + emblems: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run import:emblems + + costumes: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run import:costumes + + weapons: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run import:weapon-stories