From 8276c582b8ad272ea3bdf122555bf1d7fa21286f Mon Sep 17 00:00:00 2001 From: Tobias Pflug Date: Fri, 29 Nov 2024 09:21:13 +0100 Subject: [PATCH] Publish artifacts to S3 * add aws to flake.nix * add "upload release to s3" step --- .github/workflows/ci.yml | 4 ++++ flake.nix | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32b3724c..95eebcd4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,6 +53,10 @@ jobs: role-to-assume: ${{ secrets.AWS_ROLE_ARN }} aws-region: ${{ env.AWS_DEFAULT_REGION }} + - name: Upload zip to S3 + run: | + nix-shell --run "aws s3 cp offchain/build/release.zip s3://pcsc-bucket/${GITHUB_SHA}.zip --region $AWS_DEFAULT_REGION" + - name: Copy nix scopes to nix cache run: | nix build .#devShells.x86_64-linux.default --dry-run --json | jq -r '.[] | .drvPath + "^*"' \ diff --git a/flake.nix b/flake.nix index cb6c406a..666e78af 100644 --- a/flake.nix +++ b/flake.nix @@ -76,6 +76,7 @@ # # build tools # + awscli2 bashInteractive blst cabal-install