-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.57 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
name: build-system
run-name: Build and release operating system with sjasmplus
on:
push:
branches: [ main ]
jobs:
create-release:
runs-on: [ubuntu-latest]
container: nihirash/sjasmplus:x64
steps:
- uses: actions/checkout@v4
- name: Fix ownership
run: chown -R $(id -u):$(id -g) $PWD
- name: Build OS from sources using dockerized sjasmplus
run: (cd system && make)
- name: Pack release
run: (cd system && zip -j release.zip cpm.\$c ../drive_image/sdcard.zip)
- name: Read version
id: version
run: echo "version=$(cat system/.version)" >> $GITHUB_OUTPUT
- name: Release
id: create_release
uses: actions/create-release@v1
with:
draft: false
prerelease: false
release_name: CI build ${{ steps.version.outputs.version }}
tag_name: ${{ steps.version.outputs.version }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: "./system/release.zip"
asset_name: "release.zip"
asset_content_type: "application/zip"