-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (52 loc) · 1.58 KB
/
release.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: Please Servers
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
container:
image: thoughtmachine/please-servers:20240711
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: plz-out/gen/third_party/go
key: ${{ runner.os }}-go-${{ hashFiles('third_party/go/BUILD', 'scripts/Dockerfile') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run tests
run: ./pleasew test --profile ci -p -v 2 --exclude //tests/...
- name: Archive logs
if: always()
uses: actions/upload-artifact@v4
with:
name: logs
path: |
plz-out/log
release:
needs: [test]
runs-on: ubuntu-latest
container:
image: thoughtmachine/please-servers:20240711
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: plz-out/gen/third_party/go
key: ${{ runner.os }}-go-${{ hashFiles('third_party/go/BUILD', 'scripts/Dockerfile') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: ./pleasew build --profile ci -p -v notice //package:release_files
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: thought-machine/release-action@master
with:
version-file: VERSION
change-log-file: ChangeLog
release-files: plz-out/gen/package