add CI/CD
This commit is contained in:
parent
8dfe56a3c2
commit
d6f4fdaa5b
|
@ -0,0 +1,24 @@
|
||||||
|
name: publish package
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Explore-Gitea-Actions:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: run tests
|
||||||
|
run: |
|
||||||
|
cd ${{ gitea.workspace }}
|
||||||
|
cargo test --release
|
||||||
|
- name: build & release package
|
||||||
|
run: |
|
||||||
|
cd ${{ gitea.workspace }}
|
||||||
|
cargo build --release
|
||||||
|
cargo deb
|
||||||
|
ls -al target/debian
|
||||||
|
UPLOAD_FILE=$(ls target/debian/*.deb)
|
||||||
|
curl --user jlusiardi:${{ secrets.UPLOAD_TOKEN }} --upload-file ${UPLOAD_FILE} https://gitea.intern.haus-in-hirschaid.de/api/packages/jlusiardi/debian/pool/bionic/main/upload
|
13
Cargo.toml
13
Cargo.toml
|
@ -10,4 +10,15 @@ ratatui = "0.28.1"
|
||||||
crossterm = "0.28.1"
|
crossterm = "0.28.1"
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
petgraph = "0.6.5"
|
petgraph = "0.6.5"
|
||||||
whoami = "1.5.2"
|
whoami = "1.5.2"
|
||||||
|
|
||||||
|
[package.metadata.deb]
|
||||||
|
maintainer = "Joachim Lusiardi <joachim@lusiardi.de>"
|
||||||
|
copyright = "2024, Joachim Lusiardi <joachim@lusiardi.de>"
|
||||||
|
extended-description = """Little roguelike game"""
|
||||||
|
depends = "$auto"
|
||||||
|
section = "game"
|
||||||
|
priority = "optional"
|
||||||
|
assets = [
|
||||||
|
["target/release/el_diabolo", "/usr/bin/", "755"],
|
||||||
|
]
|
Loading…
Reference in New Issue