Skip to content

Commit 53fc9f2

Browse files
dropme: Test publish build on pull request
1 parent 9fd1991 commit 53fc9f2

1 file changed

Lines changed: 17 additions & 16 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Build and publish binaries to GitHub Releases
22
on:
3+
pull_request:
34
push:
45
tags:
56
- v*
@@ -20,19 +21,19 @@ jobs:
2021
swift-version: "6"
2122
- name: Build
2223
run: swift build --configuration release
23-
- name: Archive binary
24-
run: |
25-
mkdir -p build
26-
cp .build/release/unit build/unit
27-
tar -czf ${{ github.ref_name }}-${{ matrix.platform }}.tar.gz -C build .
28-
shasum -a 256 ${{ github.ref_name }}-${{ matrix.platform }}.tar.gz > ${{ github.ref_name }}-${{ matrix.platform }}.sha256
29-
- name: Upload assets to release
30-
id: upload_release
31-
uses: softprops/action-gh-release@v2
32-
with:
33-
tag_name: ${{ github.ref_name }}
34-
draft: true
35-
generate_release_notes: true
36-
files: |
37-
${{ github.ref_name }}-${{ matrix.platform }}.tar.gz
38-
${{ github.ref_name }}-${{ matrix.platform }}.sha256
24+
# - name: Archive binary
25+
# run: |
26+
# mkdir -p build
27+
# cp .build/release/unit build/unit
28+
# tar -czf ${{ github.ref_name }}-${{ matrix.platform }}.tar.gz -C build .
29+
# shasum -a 256 ${{ github.ref_name }}-${{ matrix.platform }}.tar.gz > ${{ github.ref_name }}-${{ matrix.platform }}.sha256
30+
# - name: Upload assets to release
31+
# id: upload_release
32+
# uses: softprops/action-gh-release@v2
33+
# with:
34+
# tag_name: ${{ github.ref_name }}
35+
# draft: true
36+
# generate_release_notes: true
37+
# files: |
38+
# ${{ github.ref_name }}-${{ matrix.platform }}.tar.gz
39+
# ${{ github.ref_name }}-${{ matrix.platform }}.sha256

0 commit comments

Comments
 (0)