Skip to content

Commit

Permalink
terraform: update file .github/workflows/release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
pimvh committed May 28, 2024
1 parent bf24d60 commit 8627f1a
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,9 @@ jobs:

# largely taken from cachix/install-nix-action
- name: install Nix
run: |
# Create a temporary workdir
workdir=$(mktemp -d)
# delete dir on exit
trap 'rm -rf "$workdir"' EXIT
# enable flakes
echo "experimental-features = nix-command flakes" >> "$workdir/nix.conf"
sh <(curl -L https://nixos.org/nix/install) --daemon --nix-extra-conf-file "$workdir/nix.conf" --no-channel-add --daemon-user-count "$(python3 -c 'import multiprocessing as mp; print(mp.cpu_count() * 2)')"
# Set required paths to find nix
echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"
echo "$HOME/.nix-profile/bin" >> "$GITHUB_PATH"
uses: cachix/install-nix-action@v27

- name: run development target
- name: publish package with poetry
run: |
nix develop .#poetry --ignore-environment --keep PIPY_API_TOKEN
env:
Expand Down

0 comments on commit 8627f1a

Please sign in to comment.