Skip to content

workflow fixes

workflow fixes #2

Workflow file for this run

name: Build tsOS-Base Images
on: push
jobs:
build-arm64:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v1
with:
submodules: recursive
token: ${{ secrets.PAT_JONASHOECHST }}
- name: Run tsOS-Base.Pifile
uses: Nature40/pimod@v0.6.0
with:
pifile: tsOS-Base.Pifile
- name: Run tsOS-Base-armhf.Pifile
uses: Nature40/pimod@v0.6.0
with:
pifile: tsOS-Base-armhf.Pifile
- name: Set Release Version
if: startsWith(github.ref, 'refs/tags/')
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Package tsOS-Base-arm64-${{ env.RELEASE_VERSION }}.zip
if: startsWith(github.ref, 'refs/tags/')
run: |
mv tsOS-Base-arm64.img tsOS-Base-arm64-${{ env.RELEASE_VERSION }}.img
zip tsOS-Base-arm64-${{ env.RELEASE_VERSION }}.zip tsOS-Base-arm64-${{ env.RELEASE_VERSION }}.img
- name: Release tsOS-Base ${{ env.RELEASE_VERSION }}
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
tsOS-Base-arm64-${{ env.RELEASE_VERSION }}.zip
tsOS-Base-armhf-${{ env.RELEASE_VERSION }}.zip