Projects STRLCPY deduplicator Commits b12b662b
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    .github/workflows/release.yml
    1 1  name: Release
     2 + 
     3 +env:
     4 + PROJECT_NAME: deduplicator
     5 + PROJECT_DESC: "Filter, Sort & Delete Duplicate Files Recursively"
     6 + PROJECT_AUTH: "sreedevk"
     7 + 
    2 8  on:
     9 + pull_request:
     10 + branches: [main]
    3 11   push:
    4 12   branches: [main]
    5  - release:
    6  - types: [created]
    7 13   
    8 14  jobs:
    9  - release:
    10  - name: release ${{ matrix.target }}
     15 + create-release:
    11 16   runs-on: ubuntu-latest
     17 + steps:
     18 + - uses: actions/checkout@v3
     19 + - uses: taiki-e/[email protected]
     20 + with:
     21 + changelog: CHANGELOG.md
     22 + token: ${{ secrets.GITHUB_TOKEN }}
     23 + branch: main
     24 + 
     25 + upload-assets:
    12 26   strategy:
    13  - fail-fast: false
    14 27   matrix:
    15  - include:
    16  - - target: x86_64-pc-windows-gnu
    17  - archive: zip
    18  - - target: x86_64-unknown-linux-musl
    19  - archive: tar.gz tar.xz tar.zst
    20  - - target: x86_64-apple-darwin
    21  - archive: zip
     28 + os:
     29 + - ubuntu-latest
     30 + - macos-latest
     31 + - windows-latest
     32 + runs-on: ${{ matrix.os }}
    22 33   steps:
    23  - - uses: actions/checkout@master
    24  - - name: Compile
    25  - uses: rust-build/[email protected]
     34 + - uses: actions/checkout@v3
     35 + - uses: taiki-e/upload-rust-binary-action@v1
     36 + with:
     37 + bin: deduplicator
     38 + tar: unix
     39 + zip: windows
     40 + token: ${{ secrets.GITHUB_TOKEN }}
    26 41   env:
    27 42   GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    28  - with:
    29  - RUSTTARGET: ${{ matrix.target }}
    30  - ARCHIVE_TYPES: ${{ matrix.archive }}
    31  - - name: Upload artifact
    32  - uses: actions/upload-artifact@v3
    33  - with:
    34  - name: Binary
    35  - path: |
    36  - ${{ steps.compile.outputs.BUILT_ARCHIVE }}
    37  - ${{ steps.compile.outputs.BUILT_CHECKSUM }}
    38 43   
Please wait...
Page is in error, reload to recover