[pre-commit.ci] pre-commit autoupdate (#86) #59
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
--- | |
# yamllint disable rule:line-length | |
name: "Release" | |
"on": | |
push: | |
branches: [main] | |
tags: | |
# life version e.g., 0.4.0 | |
- '[0-9]+.[0-9]+.[0-9]+' | |
# alpha version e.g., 0.4.0-a | |
- '[0-9]+.[0-9]+.[0-9]+-a[0-9]*' | |
# release candidate e.g., 0.4.0-rc | |
- '[0-9]+.[0-9]+.[0-9]+-rc[0-9]*' | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Update version | |
run: sed -i "s/<main>/${GITHUB_REF_NAME}/" privoxy-blocklist.sh | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
with: | |
draft: True | |
prerelease: ${{ contains(github.ref, '-a') || contains(github.ref, '-rc') }} | |
files: privoxy-blocklist.sh | |
generate_release_notes: true |