-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (38 loc) · 1.02 KB
/
build.yml
File metadata and controls
47 lines (38 loc) · 1.02 KB
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
name: Build
on:
push:
branches:
- main
jobs:
build:
if: ${{ ! contains(github.event.head_commit.message, 'prepare release') }}
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
MOONBASE_SECRET_KEY: ${{ secrets.MOONBASE_SECRET_KEY }}
steps:
- name: Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Toolchain
uses: 'moonrepo/setup-toolchain@v0'
with:
auto-install: true
- name: Configure Git
run: |
git config --global user.name GitHub Actions
git config user.email github-actions@github.com
- name: Install Knope
uses: knope-dev/action@v2.1.0
with:
version: 0.19.0
- name: Run tests
run: moon core:test
- name: Build project
run: moon core:build
- name: Create artifacts
run: moon core:artifacts
- name: Create release
continue-on-error: true
run: knope release