-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.56 KB
/
build_images.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
48
49
50
51
52
name: Build Images
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v1
with:
submodules: recursive
token: ${{ secrets.PAT_JONASHOECHST }}
- name: Run Base Pifile
uses: Nature40/[email protected]
with:
pifile: Base.Pifile
- name: Run BatRack Pifile
uses: Nature40/[email protected]
with:
pifile: BatRack.Pifile
- name: Set Release Version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Rename BatRack Image
run: mv BatRack.img BatRack-${{ env.RELEASE_VERSION }}.img
- name: Package BatRack.zip
run: zip BatRack-${{ env.RELEASE_VERSION }}.zip BatRack-${{ env.RELEASE_VERSION }}.img
- name: Create GitHub release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: true
- name: Upload BatRack.zip to release
id: upload_batrack_zip
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: BatRack-${{ env.RELEASE_VERSION }}.zip
asset_name: BatRack-${{ env.RELEASE_VERSION }}.zip
asset_content_type: application/zip