Release Linux #56
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Linux | |
on: | |
workflow_dispatch: | |
release: | |
types: [ created, edited ] | |
jobs: | |
# | |
# Build | |
# | |
build: | |
strategy: | |
matrix: | |
dist: [arch,alpine,blueprint] | |
runs-on: ubuntu-latest | |
steps: | |
# Install required tools | |
- name: Install tools | |
run: | | |
sudo env DEBIAN_FRONTEND=noninteractive apt install -y tar xz-utils coreutils | |
# Download source from repository | |
- uses: actions/checkout@v4 | |
# Build | |
- name: Build | |
run: | | |
mkdir -p dist | |
sudo ./deploy/flatimage.sh ${{ matrix.dist }} | |
cp ./build/dist/* ./dist | |
# Upload | |
- name: Upload flatimage | |
uses: actions/upload-artifact@v3 | |
with: | |
name: flatimage | |
path: dist | |
# | |
# Release | |
# | |
release: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: flatimage | |
path: dist | |
- name: Upload to release | |
uses: fnkr/github-action-ghr@v1 | |
env: | |
GHR_PATH: dist/ | |
GHR_REPLACE: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |