chore: include the examples in the release artifact #94
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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@v4 | |
with: | |
name: release | |
path: release/* | |
retention-days: 5 | |
release: | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: ubuntu-latest | |
needs: pkg | |
steps: | |
- name: Download release artifacts | |
uses: actions/download-artifact@v4 | |
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 |