Connect applications to schemes, filetypes, and more on macOS (more to come)
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

brought out the install nix step into it's own block (DRY)

+38 -40
+38 -40
.config/ci/release/github-ci.cue
··· 1 + @extern(embed) 1 2 package release 3 + 4 + #InstallNix: { 5 + name: "Install Nix" 6 + uses: "cachix/install-nix-action@v27" 7 + with: { 8 + extra_nix_config: "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" 9 + } 10 + } 2 11 3 12 workflows: release: { 4 13 name: "Release" ··· 49 58 steps: [{ 50 59 name: "Checkout code" 51 60 uses: "actions/checkout@v4" 52 - }, { 53 - name: "Install Nix" 54 - uses: "cachix/install-nix-action@v27" 55 - with: { 56 - extra_nix_config: "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" 57 - } 58 - }, { 59 - name: "Cache Cargo registry and git" 60 - uses: "actions/cache@v4" 61 - with: { 62 - path: """ 61 + }, 62 + #InstallNix, { 63 + name: "Cache Cargo registry and git" 64 + uses: "actions/cache@v4" 65 + with: { 66 + path: """ 63 67 ~/.cargo/registry/index 64 68 ~/.cargo/registry/cache 65 69 ~/.cargo/git/db 66 70 """ 67 - key: "${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }}" 68 - "restore-keys": "${{ runner.os }}-cargo-registry-" 69 - } 70 - }, { 71 - name: "Build and Package" 72 - run: "nix develop --command just package ${{ matrix.target }}" 73 - }, { 74 - name: "Extract changelog for the tag" 75 - run: "nix develop --command just create-notes ${{ github.ref_name }} release_notes.md CHANGELOG.md" 76 - }, { 77 - name: "Publish Release" 78 - uses: "softprops/action-gh-release@v2" 79 - if: "startsWith(github.ref, 'refs/tags/')" 80 - with: { 81 - files: "dist/${{ env.BINARY_NAME }}-${{ matrix.target }}.tar.gz" 82 - body_path: "release_notes.md" 83 - draft: false 84 - make_latest: true 85 - prerelease: "${{ needs.prerelease.outputs.value }}" 86 - token: "${{ secrets.PAT }}" 87 - } 88 - }] 71 + key: "${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }}" 72 + "restore-keys": "${{ runner.os }}-cargo-registry-" 73 + } 74 + }, { 75 + name: "Build and Package" 76 + run: "nix develop --command just package ${{ matrix.target }}" 77 + }, { 78 + name: "Extract changelog for the tag" 79 + run: "nix develop --command just create-notes ${{ github.ref_name }} release_notes.md CHANGELOG.md" 80 + }, { 81 + name: "Publish Release" 82 + uses: "softprops/action-gh-release@v2" 83 + if: "startsWith(github.ref, 'refs/tags/')" 84 + with: { 85 + files: "dist/${{ env.BINARY_NAME }}-${{ matrix.target }}.tar.gz" 86 + body_path: "release_notes.md" 87 + draft: false 88 + make_latest: true 89 + prerelease: "${{ needs.prerelease.outputs.value }}" 90 + token: "${{ secrets.PAT }}" 91 + } 92 + }] 89 93 } 90 94 91 95 checksum: { ··· 93 97 needs: ["package", "prerelease"] 94 98 if: "startsWith(github.ref, 'refs/tags/')" 95 99 environment: name: "main" 96 - steps: [{ 97 - name: "Install Nix" 98 - uses: "cachix/install-nix-action@v27" 99 - with: { 100 - extra_nix_config: "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" 101 - } 102 - }, { 100 + steps: [#InstallNix, { 103 101 name: "Download Release Archives" 104 102 env: { 105 103 GH_TOKEN: "${{ secrets.PAT }}"