Skip to content

.github/workflows/release.yml #37

.github/workflows/release.yml

.github/workflows/release.yml #37

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

error parsing called workflow ".github/workflows/release.yml" -> "preactjs/preact/.github/workflows/ci.yml@master" : failed to fetch workflow: reference to workflow should be either a valid branch, tag, or commit
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 }} })