-
Notifications
You must be signed in to change notification settings - Fork 14
48 lines (40 loc) · 1.09 KB
/
build.yaml
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
name: CI
on:
push: {}
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
env:
FORCE_COLOR: 1
steps:
- uses: earthly/actions-setup@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: earthly +test
if: github.ref != 'refs/heads/main'
run: earthly --strict +test
- name: earthly +push
if: github.ref == 'refs/heads/main'
run: earthly --push --secret NUGET_API_KEY --secret PSGALLERY_API_KEY --strict +all
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }}
- uses: actions/upload-artifact@v4
with:
name: Pansies
path: Modules/Pansies
- uses: actions/upload-artifact@v4
with:
name: TestResults
path: Modules/Pansies-TestResults
- uses: actions/upload-artifact@v4
with:
name: Packages
path: Modules/Pansies-Packages