Add deploy
Some checks failed
/ build-x86_64 (pull_request) Successful in 41s
/ deploy (pull_request) Failing after 21s
/ lint (pull_request) Successful in 23s

This commit is contained in:
Antoine Martin 2024-08-11 20:32:07 -04:00
parent 16bd514a2a
commit 17ef8e6dd7
Signed by: forge
GPG key ID: D62A472A4AA7D541
3 changed files with 13 additions and 22 deletions

11
.forgejo/bin/push.sh Executable file
View file

@ -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"

View file

@ -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

View file

@ -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