From 9229d0f680ed56b1f24c8744bffbcb9957f9c1b6 Mon Sep 17 00:00:00 2001 From: kczulko Date: Tue, 12 Mar 2024 10:37:21 +0100 Subject: [PATCH] Keep token and username env variables --- .github/workflows/gradle-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml index a3d2fc2..ba76c61 100644 --- a/.github/workflows/gradle-publish.yml +++ b/.github/workflows/gradle-publish.yml @@ -31,7 +31,7 @@ jobs: - uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/magic-nix-cache-action@main - name: Build with Gradle - run: nix develop --ignore-environment --command bash -c "./gradlew build && ./gradlew publish" + run: nix develop --ignore-environment --keep USERNAME --keep TOKEN --command bash -c "./gradlew build && ./gradlew publish" env: USERNAME: ${{ github.actor }} TOKEN: ${{ secrets.GITHUB_TOKEN }}