Check size constraints about the album cover image #81
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: "nix" | |
| on: | |
| pull_request: | |
| push: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install nix | |
| uses: cachix/install-nix-action@v31 | |
| - name: Install cachix | |
| uses: cachix/cachix-action@v16 | |
| with: | |
| name: jecaro | |
| authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
| - name: Build htagcli | |
| run: nix build .#htagcli | |
| - name: Build static version | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: nix build --out-link static .#htagcli-static | |
| - name: Compress | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: tar -czf htagcli.tar.gz -C static/bin htagcli | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| draft: true | |
| files: htagcli.tar.gz |