1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-12-12 14:13:20 +00:00

chore: upload linux packages (#58)

This commit is contained in:
2025-11-28 17:11:15 +01:00
committed by GitHub
parent 5cc037a086
commit cd5da53217

View File

@@ -23,10 +23,12 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Run tests - name: Run tests
run: cargo test --verbose run: cargo test --release --verbose
linuxbuild: linuxbuild:
name: Create Linux Package name: Create Linux Package
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs:
- test
permissions: permissions:
contents: write contents: write
defaults: defaults:
@@ -36,8 +38,6 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup - name: Setup
run: sudo apt update && sudo apt install rpm && cargo install cargo-deb && cargo install cargo-generate-rpm run: sudo apt update && sudo apt install rpm && cargo install cargo-deb && cargo install cargo-generate-rpm
- name: Run tests
run: cargo test --verbose
- run: make linux-package linux-deb linux-rpm - run: make linux-package linux-deb linux-rpm
- name: Release - name: Release
if: ${{ github.event_name == 'release' && github.event.action == 'created' }} if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
@@ -47,9 +47,16 @@ jobs:
*.tar.gz *.tar.gz
*.deb *.deb
*.rpm *.rpm
- name: Upload to Repository
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
run: |
curl -L --user dnpm:${{ secrets.PACKAGE_TOKEN }} --upload-file *.deb ${{ vars.DEB_UPLOAD_URL }}
curl -L --user dnpm:${{ secrets.PACKAGE_TOKEN }} --upload-file *.rpm ${{ vars.RPM_UPLOAD_URL }}
windowsbuild: windowsbuild:
name: Create Windows Package name: Create Windows Package
runs-on: windows-latest runs-on: windows-latest
needs:
- test
permissions: permissions:
contents: write contents: write
defaults: defaults:
@@ -57,8 +64,6 @@ jobs:
shell: bash shell: bash
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose
- run: make win-package - run: make win-package
- name: Release - name: Release
if: ${{ github.event_name == 'release' && github.event.action == 'created' }} if: ${{ github.event_name == 'release' && github.event.action == 'created' }}