mirror of
https://github.com/armbian/os.git
synced 2026-01-06 10:38:50 -08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
name: Upload live patch script
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths:
|
|
- 'live-patch/**.sh'
|
|
- '.github/workflows/live-patch.yml'
|
|
|
|
jobs:
|
|
|
|
Teamcheck:
|
|
permissions:
|
|
actions: write
|
|
|
|
name: "Check ORG Team Membership"
|
|
if: ${{ github.repository_owner == 'Armbian' }}
|
|
runs-on: [Linux, X64]
|
|
steps:
|
|
|
|
- name: "Check membership"
|
|
uses: armbian/actions/team-check@main
|
|
with:
|
|
ORG_MEMBERS: ${{ secrets.ORG_MEMBERS }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
TEAM: "Release manager"
|
|
|
|
Sign:
|
|
needs: Teamcheck
|
|
name: "Signing script"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Import GPG key
|
|
env:
|
|
GPG_KEY1: ${{ secrets.GPG_KEY1 }}
|
|
if: env.GPG_KEY1 != null
|
|
uses: crazy-max/ghaction-import-gpg@v6
|
|
with:
|
|
gpg_private_key: ${{ secrets.GPG_KEY1 }}
|
|
passphrase: ${{ secrets.GPG_PASSPHRASE1 }}
|
|
|
|
- name: Sign
|
|
env:
|
|
GPG_PASSPHRASE1: ${{ secrets.GPG_PASSPHRASE1 }}
|
|
if: env.GPG_PASSPHRASE1 != null
|
|
run: |
|
|
|
|
for file in live-patch/*.sh;
|
|
do
|
|
cp $file $file.txt # to have web friendly version
|
|
echo ${{ secrets.GPG_PASSPHRASE1 }} | gpg --passphrase-fd 0 --armor --detach-sign --pinentry-mode loopback --batch --yes "$file"
|
|
done
|
|
|
|
- name: Install SSH key
|
|
uses: shimataro/ssh-key-action@v2
|
|
with:
|
|
key: ${{ secrets.KEY_UPLOAD }}
|
|
known_hosts: ${{ secrets.KNOWN_HOSTS_ARMBIAN_UPLOAD }}
|
|
if_key_exists: replace
|
|
|
|
- name: Upload
|
|
run: |
|
|
|
|
rsync --exclude "README.md" -avh -e "ssh -p 10023 -o StrictHostKeyChecking=accept-new" live-patch/* upload@rsync.armbian.com:/storage/www/dl/_patch/ --delete
|