forked from preactjs/preact
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 878 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Release
on: create
jobs:
build:
if: github.ref_type == 'tag'
uses: preactjs/preact/.github/workflows/ci.yml@master
release:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: npm-package
- name: Create draft release
id: create-release
uses: actions/github-script@v6
with:
script: |
const script = require('./scripts/release/create-gh-release.js')
return script({ github, context })
- name: Upload release artifact
uses: actions/github-script@v6
with:
script: |
const script = require('./scripts/release/upload-gh-asset.js')
return script({ require, github, context, glob, release: ${{ steps.create-release.outputs.result }} })