Skip to content

Commit

Permalink
update better CI/CD for github mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed May 10, 2024
1 parent e80c28e commit 56247ba
Showing 1 changed file with 37 additions and 30 deletions.
67 changes: 37 additions & 30 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,47 @@ name: CI

on:
push:
branches: [ master ]
branches: [master]

workflow_dispatch:

jobs:
compile:
name: Create deb package
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: debian:testing
options: -v ${{ github.workspace }}:/root -v /output:/output
run: |
set -ex
cd /root
apt update
apt install devscripts equivs -y
yes | mk-build-deps --install
debuild -us -uc -b
mkdir -p /output/
mv ../*.deb /output/
mv ./*.deb /output/
compile_x86:
name: Create deb package (x86_86)
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: debian:testing
options: -v ${{ github.workspace }}:/root -v /output:/output
run: |
set -ex
cd /root
apt update
apt install devscripts equivs -y
yes | mk-build-deps --install
debuild -us -uc -b
mkdir -p /output/
mv ../*.deb /output/
mv ./*.deb /output/
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "current"
prerelease: false
title: "Latest release"
files: |
/output/*
release:
needs: [compile_x86]
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Create Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "current"
prerelease: false
title: "Latest release"
files: |
/output/*

0 comments on commit 56247ba

Please sign in to comment.