universal-android-debloater.../.github/workflows/release.yml
Amaan Qureshi 68092ff987
refactor: apply extra clippy lints suggestions (#673)
Cherry picking of lints from clippy::pedantic / clippy::nursery / clippy::unwrap_used / clippy::expect_used

Notable changes :
- consideration of all clippy::use-self lints
- replaced sort() by unstable_sort()
- use of map_or_else() when appropriate 
- replaced "".to_string() by String::new()
- replaced collect() + len() by count()

The code base now passes all the clippy::nursery lints

---------
Co-authored-by: w1nst0n <w1nst0n@keemail.me>
2023-04-10 09:33:12 +00:00

50 lines
1.3 KiB
YAML

name: Build and release
on:
push:
branches:
- main
paths:
- "**.rs"
- "Cargo.lock"
- "Cargo.toml"
tags-ignore:
- dev-build
env:
dev_tag: dev-build
jobs:
build:
uses: ./.github/workflows/build_artifacts.yml
release:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- name: Downloads artifacts
uses: actions/download-artifact@v3
with:
path: bin
- name: Create pre-release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
body_path: ${{ github.workspace }}/CHANGELOG.md
files: bin/*/uad_gui-*
prerelease: true
# - name: Update dev-build tag
# if: ${{ github.event_name == 'push' }}
# run: |
# git tag -d ${{ env.dev_tag }} || true
# git push origin :refs/tags/${{ env.dev_tag }} || true
# git tag ${{ env.dev_tag }}
# git push origin ${{ env.dev_tag }}
# - name: Create dev-build release
# if: ${{ github.event_name == 'push' }}
# uses: softprops/action-gh-release@v1
# with:
# generate_release_notes: true
# files: bin/*/uad_gui-*
# prerelease: true
# tag_name: ${{ env.dev_tag }}