Add deploy
This commit is contained in:
parent
16bd514a2a
commit
17ef8e6dd7
3 changed files with 13 additions and 22 deletions
11
.forgejo/bin/push.sh
Executable file
11
.forgejo/bin/push.sh
Executable 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"
|
||||
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue