From 17ef8e6dd7df29b0a8bc9f79afe41942442ba5a9 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sun, 11 Aug 2024 20:32:07 -0400 Subject: [PATCH] Add deploy --- .forgejo/bin/push.sh | 11 +++++++++++ .forgejo/workflows/build.yaml | 6 ++---- .forgejo/workflows/deploy.yaml | 18 ------------------ 3 files changed, 13 insertions(+), 22 deletions(-) create mode 100755 .forgejo/bin/push.sh delete mode 100644 .forgejo/workflows/deploy.yaml diff --git a/.forgejo/bin/push.sh b/.forgejo/bin/push.sh new file mode 100755 index 0000000..5884481 --- /dev/null +++ b/.forgejo/bin/push.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# shellcheck disable=SC3040 +set -eu -o pipefail + +readonly APORTSDIR=$GITHUB_WORKSPACE +readonly REPOS="backports user" +readonly BASEBRANCH=$GITHUB_BASE_REF + +find package -type -f -name "*.apk" + diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 06fc1f6..43b442d 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -32,7 +32,5 @@ jobs: steps: - run: apk add nodejs curl - uses: forgejo/download-artifact@v4 - - name: Deploy - run: | - echo "Deploying..." - ls -R + - name: Deploy to repo + run: ${{ github.workspace }}/.forgejo/bin/deploy.sh diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml deleted file mode 100644 index 3291149..0000000 --- a/.forgejo/workflows/deploy.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: "Deploy on Comment" - -on: - issue_comment: - types: [created] - -jobs: - deploy: - runs-on: ubuntu-latest - if: github.event.issue.pull_request && contains(github.event.comment.body, '/deploy') - steps: - - uses: actions/download-artifact@v4 - with: - name: package - - name: Deploy - run: | - echo "Deploying..." - ls -R