-
Notifications
You must be signed in to change notification settings - Fork 20
38 lines (37 loc) · 1.15 KB
/
build12.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
name: build11
on:
push:
branches:
- main
jobs:
build-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Install Devbox
uses: jetpack-io/devbox-install-action@v0.11.0
with:
enable-cache: true
project-path: .github/workflows
- name: Test
run: devbox --config .github/workflows run test
- name: Publish
run: |
export UP_TOKEN=${{ secrets.UP_TOKEN }}
export UP_ACCOUNT=${{ secrets.UP_ACCOUNT }}
export VERSION=v0.12.${{ github.run_number }}
devbox --config .github/workflows run package-publish
- name: Commit changes
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Config update [skip ci]"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.CROSSPLANE_TOKEN }}
branch: ${{ github.ref }}