Skip to content

Configure automatic release action #1

Configure automatic release action

Configure automatic release action #1

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`
# and put the release notes into the commit message for the tag.
name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
tests:
# Do only release when CI succeeds.
uses: ./.github/workflows/workflow.yaml

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/release.yaml" -> "./.github/workflows/workflow.yaml" (source tag with sha:52e8811c3f5dedb95bc1d07891f8a7b237d2f67b) : workflow is not reusable as it is missing a `on.workflow_call` trigger
release:
# Do only release when CI succeeds.
needs: [test-nixpkgs, 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