From 92838250b5197355c6e098f8ed25fd874ca3d4e7 Mon Sep 17 00:00:00 2001 From: sevenautumns Date: Fri, 24 Feb 2023 18:22:56 +0100 Subject: [PATCH] Automatic Release --- .github/workflows/nix.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/nix.yaml b/.github/workflows/nix.yaml index 97c3336..2c0308e 100644 --- a/.github/workflows/nix.yaml +++ b/.github/workflows/nix.yaml @@ -57,6 +57,18 @@ jobs: with: name: ${{ matrix.derivation }}@${{ matrix.nix-system }} path: ${{ matrix.derivation }} + - name: Prepare Release + if: startsWith(github.ref, 'refs/tags/') && contains(matrix.derivation, 'static') + run: cp $(readlink --canonicalize -- result)/${{ matrix.derivation }} ./${{ matrix.derivation }}-${{ matrix.nix-system }} + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') && contains(matrix.derivation, 'static') + with: + files: | + ${{ matrix.derivation }}-${{ matrix.nix-system }} + rp + LICENSE-MIT + LICENSE-APACHE - name: Deploy PDF artifacts if: ${{ matrix.derivation == 'whitepaper' && github.ref == 'refs/heads/main' }} uses: peaceiris/actions-gh-pages@v3