From ea47e4ca0c3e09a2bf2a69fcc2e2fd46e9b4acea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Thu, 8 Aug 2024 14:53:25 +0200 Subject: [PATCH] Upload GitHub release artifacts on tag push --- .github/workflows/publish_web-features.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/publish_web-features.yml b/.github/workflows/publish_web-features.yml index 5c6b3c9b386..13b61af9cc2 100644 --- a/.github/workflows/publish_web-features.yml +++ b/.github/workflows/publish_web-features.yml @@ -20,6 +20,23 @@ jobs: cache: npm - run: npm ci - run: npm test + artifacts: + if: github.repository == 'web-platform-dx/web-features' + runs-on: ubuntu-latest + needs: "test" + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: .node-version + cache: npm + registry-url: "https://registry.npmjs.org" + - run: npm ci + - run: npm run build + - run: npm run build:extended + - run: gh release upload ${{ github.ref_name }} packages/web-features/data.json schemas/data.schema.json data.extended.json + env: + GH_TOKEN: ${{ github.token }} publish: if: github.repository == 'web-platform-dx/web-features' runs-on: ubuntu-latest