Skip to content

Commit

Permalink
Hard code branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Mar 25, 2024
1 parent d852c49 commit cfff31b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/upload-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ name: Wait for Hydra Build

on:
push:
branches:
- main
tags:
- "nix-tools-*"
pull_request:

env:
FLAKE_REF: github:${{ github.repository }}?ref=${{ github.head_ref || github.ref }}
Expand All @@ -16,8 +19,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}

- name: Install Nix with good defaults
uses: input-output-hk/install-nix-action@v20
Expand Down Expand Up @@ -57,6 +58,8 @@ jobs:
- name: "Compute nix-tools-static.nix"
if: startsWith(github.ref, 'refs/tags/')
run: |
git fetch --all
git switch --force static-nix-tools
(
echo "pkgs: let baseurl = \"https://github.com/input-output-hk/haskell.nix/releases/download/${GITHUB_REF_NAME}/\"; in {"
for arch in aarch64-darwin x86_64-darwin aarch64-linux x86_64-linux; do
Expand All @@ -76,7 +79,7 @@ jobs:
run: |
git add nix-tools-static.nix
git commit -m "update nix-tools-static.nix"
git push
git push origin static-nix-tools
- name: Release
uses: input-output-hk/action-gh-release@v1
Expand Down

0 comments on commit cfff31b

Please sign in to comment.