Skip to content

Update packaging action #9

Update packaging action

Update packaging action #9

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
environment: Package
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Change CD
run: cd OneDriveRipper
- name: Prepare RPM packaging
run: dotnet tool install --global dotnet-rpm
- name: Prepare DEB packaging
run: dotnet tool install --global dotnet-deb
- name: Install RPM packaging tool
run: dotnet rpm install
- name: Install DEB packagin tool
run: dotnet deb install
- name: Create RPM package
run: cd OneDriveRipper && dotnet rpm -c Release -o dist-release
- name: Create DEB package
run: cd OneDriveRipper && dotnet deb -c Release -o dist-release
- name: Publish packages
uses: TykTechnologies/packagecloud-action@7add92bc6a06914be404cf7fa00a6ccb302e6ac5
env:
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
with:
repo: 'thonkdifferent/onedriveripper'
dir: './OneDriveRipper/dist-release/'
rpmvers: 'el/8 el/9 fedora/39 fedora/40 openSUSE/Tumbleweed openSUSE/Leap/15.6 openSUSE/Leap/15.5'
debvers: 'debian/bookworm debian/testing debian/unstable ubuntu/focal ubuntu/jammy ubuntu/noble'