Skip to content

Prepare Release

Prepare Release #2

Workflow file for this run

# Cut a release whenever a new tag is pushed to the repo.
# You should use an annotated tag, like `git tag -a v1.2.3 --cleanup=whitespace`
# and put the release notes into the commit message for the tag.
# The `--cleanup` flag avoids markdown headings being stripped as comments.
name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
tests:
# Do only release when CI succeeds.
uses: ./.github/workflows/workflow.yaml
release:
# Do only release when CI succeeds.
needs: [test-nixpkgs, test-examples]

Check failure on line 22 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml (Line: 22, Col: 13): Job 'release' depends on unknown job 'test-nixpkgs'. .github/workflows/release.yaml (Line: 22, Col: 27): Job 'release' depends on unknown job 'test-examples'.
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare release notes and artifacts
run: .github/workflows/release_prep.sh ${{ env.GITHUB_REF_NAME }} > release_notes.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
prerelease: true
# Use GH feature to populate the changelog automatically
generate_release_notes: true
body_path: release_notes.txt
fail_on_unmatched_files: true
files: rules_nixpkgs*-*.tar.gz