Skip to content

Commit

Permalink
fixup! Simplify release process
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Sep 23, 2024
1 parent 57c4409 commit 1a3c371
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ jobs:
sed -i \
-e '/bazel_dep(name = "rules_haskell"/s/version = "[^"]*"/version = "${{ steps.latest.outputs.version }}"/' \
start
# update http_archive attrs between `cat > WORKSPACE` and `EOF`
sed -i \
-e '/cat > WORKSPACE/,/^EOF/{' \
-e ' s%sha256 = "[^"]*"%sha256 = "${{ steps.latest.outputs.hash }}"%; ' \
-e ' s%strip_prefix = "[^"]*"%strip_prefix = "rules_haskell-${{ steps.latest.outputs.version }}"%; ' \
-e ' s%url = "[^"]*"%url = "https://github.com/tweag/rules_haskell/releases/download/v${{ steps.latest.outputs.version }}/rules_haskell-${{ steps.latest.outputs.version }}.tar.gz"%' \
-e '}' \
start
# update http_archive attrs in docs between `name = "rules_haskell"` and `url = "`
sed -i \
-e '/name = "rules_haskell"/,/url = "/{' \
-e ' s%sha256 = "[^"]*"%sha256 = "${{ steps.latest.outputs.hash }}"%; ' \
Expand Down

0 comments on commit 1a3c371

Please sign in to comment.