Skip to content
This repository was archived by the owner on Jun 12, 2022. It is now read-only.

Commit 4b36de9

Browse files
committed
🌵 Release workflow: Run git manually
This works around actions/checkout#760, which is caused by a "security" fix of git.
1 parent 07bc20c commit 4b36de9

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ jobs:
1616
- name: Install Git & Go
1717
run: pacman -Syu --needed --noconfirm git go
1818

19-
- uses: actions/checkout@v3
19+
- name: Git Checkout Tag
20+
run: |
21+
cd ../
22+
rm -rf ${{ github.event.repository.name }}
23+
git clone --branch ${{ github.ref_name }} https://github.com/${{ github.repository }}.git
2024
2125
- name: Build
2226
run: |
@@ -38,31 +42,27 @@ jobs:
3842
env CGO_ENABLED=0 GOAMD64=v3 GOOS=windows go build -v -trimpath -ldflags '-s -w' -o package-windows-x86-64-v3/ ./...
3943
env CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -v -trimpath -ldflags '-s -w' -o package-windows-arm64/ ./...
4044
41-
- name: Get version
42-
id: get_version
43-
run: echo "::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)"
44-
4545
- name: Package
4646
env:
4747
ZSTD_CLEVEL: 19
4848
ZSTD_NBTHREADS: 2
4949
run: |
5050
cd package-archlinux-x86-64-v2/
51-
tar -acf ../outline-ss-${{ steps.get_version.outputs.VERSION }}-archlinux-x86-64-v2.tar.zst .
51+
tar -acf ../outline-ss-${{ github.ref_name }}-archlinux-x86-64-v2.tar.zst .
5252
cd ../package-archlinux-x86-64-v3/
53-
tar -acf ../outline-ss-${{ steps.get_version.outputs.VERSION }}-archlinux-x86-64-v3.tar.zst .
53+
tar -acf ../outline-ss-${{ github.ref_name }}-archlinux-x86-64-v3.tar.zst .
5454
cd ../package-linux-x86-64-v2/
55-
tar -acf ../outline-ss-${{ steps.get_version.outputs.VERSION }}-linux-x86-64-v2.tar.zst .
55+
tar -acf ../outline-ss-${{ github.ref_name }}-linux-x86-64-v2.tar.zst .
5656
cd ../package-linux-x86-64-v3/
57-
tar -acf ../outline-ss-${{ steps.get_version.outputs.VERSION }}-linux-x86-64-v3.tar.zst .
57+
tar -acf ../outline-ss-${{ github.ref_name }}-linux-x86-64-v3.tar.zst .
5858
cd ../package-linux-arm64/
59-
tar -acf ../outline-ss-${{ steps.get_version.outputs.VERSION }}-linux-arm64.tar.zst .
59+
tar -acf ../outline-ss-${{ github.ref_name }}-linux-arm64.tar.zst .
6060
cd ../package-windows-x86-64-v2/
61-
tar -acf ../outline-ss-${{ steps.get_version.outputs.VERSION }}-windows-x86-64-v2.tar.zst .
61+
tar -acf ../outline-ss-${{ github.ref_name }}-windows-x86-64-v2.tar.zst .
6262
cd ../package-windows-x86-64-v3/
63-
tar -acf ../outline-ss-${{ steps.get_version.outputs.VERSION }}-windows-x86-64-v3.tar.zst .
63+
tar -acf ../outline-ss-${{ github.ref_name }}-windows-x86-64-v3.tar.zst .
6464
cd ../package-windows-arm64/
65-
tar -acf ../outline-ss-${{ steps.get_version.outputs.VERSION }}-windows-arm64.tar.zst .
65+
tar -acf ../outline-ss-${{ github.ref_name }}-windows-arm64.tar.zst .
6666
6767
- name: Upload release assets
6868
uses: svenstaro/upload-release-action@v2

0 commit comments

Comments
 (0)