Skip to content

Automatic debian package upload to deb repo #54

Automatic debian package upload to deb repo

Automatic debian package upload to deb repo #54

Workflow file for this run

name: Create debian package
on: [push, pull_request]
env:
pkg_name: fcow_1.2-${{GITHUB_RUN_NUMBER}}

Check failure on line 6 in .github/workflows/deb.yml

View workflow run for this annotation

GitHub Actions / Create debian package

Invalid workflow file

The workflow is not valid. .github/workflows/deb.yml (Line: 6, Col: 13): Unrecognized named-value: 'GITHUB_RUN_NUMBER'. Located at position 1 within expression: GITHUB_RUN_NUMBER .github/workflows/deb.yml (Line: 16, Col: 14): Unrecognized named-value: 'pkg_name'. Located at position 1 within expression: pkg_name
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create package structure
run: |
mkdir ${{pkg_name}}
cd ${{pkg_name}}
mkdir -p DEBIAN usr/local/bin usr/local/man/man6 usr/local/share/fcow
- name: Copy stuff inside
run: |
cp deb_control ${{pkg_name}}/DEBIAN/control
cp src/* ${{pkg_name}}/usr/local/bin/
chmod +x ${{pkg_name}}/usr/local/bin/*
cp share/* ${{pkg_name}}/usr/local/share/fcow/
cp man/* ${{pkg_name}}/usr/local/man/man6/
- name: Create deb package
run: dpkg-deb -Zxz --build ${{pkg_name}}
- name: Upload deb as artifact
uses: actions/upload-artifact@v3
with:
name: ${{pkg_name}}.deb
path: ${{pkg_name}}.deb