-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use sha-versions for most gh actions
PiperOrigin-RevId: 564692809
- Loading branch information
1 parent
91d1b2d
commit 63402aa
Showing
4 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ on: | |
- v*.*.* | ||
release: | ||
types: [ published ] | ||
pull_request: | ||
types: [opened, reopened, labeled, synchronize] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | ||
|
@@ -46,12 +48,12 @@ jobs: | |
|
||
steps: | ||
- name: Checkout the source | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | ||
with: | ||
submodules: false | ||
fetch-depth: 1 | ||
|
||
- uses: actions/cache@v3 | ||
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 | ||
id: cache-vcpkg | ||
with: | ||
path: vcpkg | ||
|
@@ -100,22 +102,21 @@ jobs: | |
cmake --build out --config Release --target install | ||
cp LICENSE prefix/bin/LICENSE.brotli | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 | ||
with: | ||
name: brotli-${{matrix.triplet}} | ||
path: | | ||
prefix/bin/* | ||
- name: Package release zip | ||
if: github.event_name == 'release' | ||
shell: 'powershell' | ||
run: | | ||
Compress-Archive -Path prefix\bin\* ` | ||
-DestinationPath brotli-${{matrix.triplet}}.zip | ||
- name: Upload binaries to release | ||
if: github.event_name == 'release' | ||
uses: AButler/[email protected] | ||
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15 | ||
with: | ||
files: brotli-${{matrix.triplet}}.zip | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
tag_name: dev/null |