Skip to content

Use GitHub CLI for drafting releases in release workflow #60

Use GitHub CLI for drafting releases in release workflow

Use GitHub CLI for drafting releases in release workflow #60

Workflow file for this run

name: Release
on:
push:
tags:
- v[0-9]+.*
permissions:
contents: write
jobs:
check:
uses: ./.github/reusable-workflows/check-release.yml

Check failure on line 13 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

invalid value workflow reference: no version specified
release:
uses: ./.github/reusable-workflows/build-release.yml
with:
scarb-tag: ${{ github.ref_name }}
draft:
name: draft release
runs-on: ubuntu-latest
needs: [ check, release ]
steps:
- uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: artifacts-dl
- name: Unpack artifacts to staging directory
run: |
mkdir -p artifacts
mv artifacts-dl/build-*/scarb-* artifacts/
mv artifacts-dl/checksums/* artifacts/
ls -lh artifacts/
- name: Draft GitHub release
run: |
gh release create \
'${{ github.ref_name }}' \
./artifacts/* \
--draft \
--title '${{ github.ref_name }}' \
--generate-notes \
--verify-tag
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}