From b95d6acac2c77a56ae2d396fe7d38fd20a98f718 Mon Sep 17 00:00:00 2001 From: Nathan Smith Date: Thu, 15 Feb 2024 23:41:48 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20ci:=20#43=20Repair=20release=20a?= =?UTF-8?q?ction=20by=20uploading=20artifact?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: #43 --- .github/workflows/build.yml | 12 +++++++++--- .github/workflows/code-check.yml | 4 +--- .github/workflows/release.yml | 7 +++++-- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9fba169..e0bb224 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,11 +6,17 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 - with: - node-version: "20.x" - name: Build run: | npm install npm run build + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: dist + path: | + main.js + manifest.json + styles.css diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml index ea45859..0b8215e 100644 --- a/.github/workflows/code-check.yml +++ b/.github/workflows/code-check.yml @@ -10,10 +10,8 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 - with: - node-version: "20.x" - name: Lint run: | npm install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 31df4fb..1e4d029 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,11 +9,14 @@ jobs: draft: needs: build runs-on: ubuntu-latest + permissions: + contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 + - uses: actions/download-artifact@v4 with: - node-version: "20.x" + merge-multiple: true - name: Create Draft env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}