Skip to content

Commit ed321b3

Browse files
kriscfosteruhthomas
authored andcommitted
release
1 parent a88470c commit ed321b3

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,14 @@ jobs:
1717
id: get_tag
1818
run: echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
1919

20-
- name: Download repository archive at pushed tag
21-
run: "curl -L https://github.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/archive/refs/tags/${{ steps.get_tag.outputs.TAG }}.tar.gz -o rules_docker-${{ steps.get_tag.outputs.TAG }}.tar.gz"
20+
- uses: actions/checkout@v3
21+
22+
- run: git archive --output=rules_docker-${{ steps.get_tag.outputs.TAG }}.tar.gz ${{ steps.get_tag.outputs.TAG }}
2223

2324
- name: Get SHA256 of archive
2425
id: get_sha
2526
run: echo "::set-output name=sha::$(sha256sum rules_docker-${{ steps.get_tag.outputs.TAG }}.tar.gz | cut -f 1 -d ' ')"
2627

27-
- name: Get version
28-
id: get_version
29-
run: |
30-
VERSION=${{ steps.get_tag.outputs.TAG }}
31-
echo "VERSION=${VERSION:1}" >> $GITHUB_ENV
32-
3328
- name: Create Release
3429
uses: softprops/action-gh-release@v1
3530
with:
@@ -39,7 +34,6 @@ jobs:
3934
http_archive(
4035
name = "io_bazel_rules_docker",
4136
sha256 = "${{ steps.get_sha.outputs.sha }}",
42-
strip_prefix = "rules_docker-${{ env.VERSION }}",
4337
urls = ["https://github.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/releases/download/${{ steps.get_tag.outputs.TAG }}/rules_docker-${{ steps.get_tag.outputs.TAG }}.tar.gz"],
4438
)
4539
```

0 commit comments

Comments
 (0)