From bbf2269e5f4813b397b9f71d77cb6c763e59af7a Mon Sep 17 00:00:00 2001 From: Moondarker Date: Sun, 16 Jun 2024 19:21:50 +0300 Subject: [PATCH] Added build action (#1018) --- .github/workflows/build.yaml | 53 ++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..adb3fd1 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,53 @@ +name: Test Build Extension + +on: + push: + branches: [main] + paths: + - Extensions/combined/** + + pull_request: + branches: [main] + paths: + - Extensions/combined/** + +jobs: + build: + runs-on: ubuntu-latest + + defaults: + run: + working-directory: ./Extensions/combined + + steps: + - name: Checkout + uses: actions/checkout@main + + - name: Setup Node 20 + uses: actions/setup-node@v3 + with: + node-version: '20.x' + + - name: Install dependencies + run: npm ci + + - name: Build extension + run: npm run build + + - name: 'Upload Chrome artifact' + uses: actions/upload-artifact@v4 + with: + name: ryd-chrome + path: ./Extensions/combined/dist/chrome + + - name: 'Upload Firefox artifact' + uses: actions/upload-artifact@v4 + with: + name: ryd-firefox + path: ./Extensions/combined/dist/firefox + + - name: 'Upload Safari artifact' + uses: actions/upload-artifact@v4 + with: + name: ryd-safari + path: ./Extensions/combined/dist/safari