From a19d7e026a35b46c699bdb755bcee8fd01e2b09f Mon Sep 17 00:00:00 2001 From: Luke Harding Date: Tue, 30 Apr 2024 13:37:21 -0400 Subject: [PATCH 1/3] Testing #4 --- .gitea/workflows/build-on-release.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build-on-release.yaml b/.gitea/workflows/build-on-release.yaml index 85e0b87..cd46ccd 100644 --- a/.gitea/workflows/build-on-release.yaml +++ b/.gitea/workflows/build-on-release.yaml @@ -4,10 +4,15 @@ on: [ release ] jobs: cargo-build: - runs-on: ubuntu-latest + runs-on: ubuntu-latest-rust steps: - name: Check out code repository uses: actions/checkout@v4 - - name: Is cargo installed? + - name: Build Binary run: | - which cargo \ No newline at end of file + cargo build --release + - name: Push binary to artifact + uses: actions/upload-artifact@v4 + with: + name: build + path: ./target/release/rust-archlinux-update \ No newline at end of file From f856a1d89ad25f79f748f4e0d0956cc1ab319efc Mon Sep 17 00:00:00 2001 From: Luke Harding Date: Tue, 30 Apr 2024 13:50:02 -0400 Subject: [PATCH 2/3] On push to main build and create draft release --- .gitea/workflows/build-on-release.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build-on-release.yaml b/.gitea/workflows/build-on-release.yaml index cd46ccd..bdd9574 100644 --- a/.gitea/workflows/build-on-release.yaml +++ b/.gitea/workflows/build-on-release.yaml @@ -1,6 +1,9 @@ name: Build on Release run-name: ${{ gitea.actor }} -on: [ release ] +on: + push: + branches: + - main jobs: cargo-build: @@ -12,7 +15,8 @@ jobs: run: | cargo build --release - name: Push binary to artifact - uses: actions/upload-artifact@v4 + uses: actions/gitea-release-action@v1 with: - name: build - path: ./target/release/rust-archlinux-update \ No newline at end of file + draft: true + files: |- + target/release/rust-archlinux-update \ No newline at end of file From 1cd20200b5e809dbac876ecd30a0bb054747c091 Mon Sep 17 00:00:00 2001 From: Luke Harding Date: Tue, 30 Apr 2024 13:52:23 -0400 Subject: [PATCH 3/3] Use gitea urls in action pull --- .gitea/workflows/build-on-release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-on-release.yaml b/.gitea/workflows/build-on-release.yaml index bdd9574..264e9e0 100644 --- a/.gitea/workflows/build-on-release.yaml +++ b/.gitea/workflows/build-on-release.yaml @@ -10,12 +10,12 @@ jobs: runs-on: ubuntu-latest-rust steps: - name: Check out code repository - uses: actions/checkout@v4 + uses: https://gitea.com/actions/checkout@v4 - name: Build Binary run: | cargo build --release - name: Push binary to artifact - uses: actions/gitea-release-action@v1 + uses: https://gitea.com/actions/gitea-release-action@v1 with: draft: true files: |-