feat: Refactor README formatting and content #15
Workflow file for this run
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-release: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| target: x86_64-unknown-linux-musl | |
| name: linux-musl-x86_64 | |
| # Mac builds | |
| - os: macos-latest | |
| target: x86_64-apple-darwin | |
| name: macos-x86_64 | |
| - os: macos-latest | |
| target: aarch64-apple-darwin | |
| name: macos-aarch64 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - name: Install musl-tools | |
| if: matrix.target == 'x86_64-unknown-linux-musl' | |
| run: sudo apt-get update && sudo apt-get install -y musl-tools | |
| - name: Build binary | |
| run: cargo build --release --target ${{ matrix.target }} | |
| - name: Rename and compress | |
| run: | | |
| mv target/${{ matrix.target }}/release/envseal envseal-${{ matrix.name }} | |
| tar -czvf envseal-${{ matrix.name }}.tar.gz envseal-${{ matrix.name }} | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: envseal-${{ matrix.name }}.tar.gz | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |