-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (40 loc) · 1.17 KB
/
build-and-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
name: Build 🔨 and Release 🚀
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [amd64]
name: Build and Test (${{ matrix.architecture }}) 🔨
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.architecture }}
- name: Build and Test 🔨
run: ./build/docker.sh --architecture ${{ matrix.architecture }}
- uses: actions/upload-artifact@v3
with:
name: ebs-bootstrap-linux-${{ matrix.architecture }}
path: ebs-bootstrap-linux-${{ matrix.architecture }}
if-no-files-found: error
retention-days: 1
release:
runs-on: ubuntu-latest
name: Release 🚀
needs:
- test
steps:
- uses: actions/checkout@v4
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
- name: Get next version
uses: reecetech/[email protected]
id: version
with:
scheme: semver
increment: patch
- name: Display structure of downloaded files
run: ls -R