Skip to content

fix(packaging): include missing .bzl files into the tar distribution … #89

fix(packaging): include missing .bzl files into the tar distribution …

fix(packaging): include missing .bzl files into the tar distribution … #89

Workflow file for this run

---
name: CI
on: # yamllint disable rule:truthy
push:
branches:
- main
tags:
- "*.*.*"
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test fetch
run: bazel fetch //...
- name: Test
run: bazel test //...
test-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Test
run: bazel test //...
pkg:
runs-on: ubuntu-latest
needs:
- build
- test-mac
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create release archive and notes
# Set by GH actions, see
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
run: ./ci/package.sh "${{ github.ref_name }}"
- name: Archive release artifacts
uses: actions/upload-artifact@v3
with:
name: release
path: release/*
retention-days: 5
release:
if: ${{ github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
needs: pkg
steps:
- name: Download release artifacts
uses: actions/download-artifact@v3
with:
name: release
- name: Release
uses: softprops/action-gh-release@v1
with:
# Use GH feature to populate the changelog automatically
generate_release_notes: true
body_path: release_notes.md
fail_on_unmatched_files: true
files: rules_shellcheck-*.tar.gz