Merge pull request #44 from nathonius/ci/43/release-workflow

🤖 ci: #43 Repair release action by uploading artifact
This commit is contained in:
Nathan 2024-02-15 23:51:08 -05:00 committed by GitHub
commit 3987aa3499
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 8 deletions

View file

@ -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

View file

@ -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

View file

@ -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}}