forked from google/skia
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.37 KB
/
release-with-deps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Archive release with depedencies
on:
push:
tags:
- "**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Prepare source code
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install skia dependencies and prepare release folder
run: |
python3 tools/git-sync-deps
rm -rf third_party/externals/emsdk/node
rm -rf third_party/externals/emsdk/upstream
mkdir -p github-release
echo ${{ github.sha }} > COMMIT_ID
- name: Archive release
uses: thedoctor0/[email protected]
with:
type: 'tar'
filename: 'github-release/skia-with-deps-${{ github.ref_name }}.tar.gz'
exclusions: 'github-release .git'
- name: Generate checksums for this release
run: |
echo "MD5 Checksums:" >> RELEASE_BODY
md5sum github-release/* >> RELEASE_BODY
echo >> RELEASE_BODY
echo "SHA256 Checksums:" >> RELEASE_BODY
sha256sum github-release/* >> RELEASE_BODY
echo >> RELEASE_BODY
echo "Commit-id: ${{ github.sha }}" >> RELEASE_BODY
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: github-release/skia-with-deps-${{ github.ref_name }}.tar.gz
body_path: RELEASE_BODY
append_body: true