From 03b78c4e81fd5aa0174b184cba6cf74f8c95f9e8 Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Mon, 1 Jul 2024 23:25:53 +0800 Subject: [PATCH] add release act. --- .gitea/workflows/release.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/release.yaml diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..628c032 --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,31 @@ +name: Deploy Release +run-name: ${{ github.actor }} is building Bilby... +on: [push] +jobs: + PullDocker: + runs-on: [ubuntu-latest, ubuntu-24.04] + steps: + - name: Login to Docker Registry + uses: docker/login-action@v2 + with: + registry: frp-by1.wwvvww.cn:45288 + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Pull Docker image + run: docker pull frp-by1.wwvvww.cn:45288/ubuntu_dev:22.04 + Build: + runs-on: [ubuntu-latest, ubuntu-24.04] + container: + image: frp-by1.wwvvww.cn:45288/ubuntu_dev:24.04 + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - run: cmake -S . -B build + - run: cmake --build build --target all + - run: build/Bilby + - name: Upload Gitea Release + uses: akkuman/gitea-release-action@v1 + with: + files: |- + build/Bilby + \ No newline at end of file