add CI/CD
This commit is contained in:
24
.gitea/workflows/publish.yaml
Normal file
24
.gitea/workflows/publish.yaml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user