.github/workflows/release.yml #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | ||
on: create | ||
jobs: | ||
build: | ||
if: github.ref_type == 'tag' | ||
uses: preactjs/preact/.github/workflows/ci.yml@master | ||
Check failure on line 7 in .github/workflows/release.yml GitHub Actions / .github/workflows/release.ymlInvalid workflow file
|
||
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 }} }) |