-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webmin.dev: Deploy Webmin and Usermin packages
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
.github/workflows/webmin.dev-deploy-webmin-and-usermin-packages.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: "webmin.dev: Deploy Webmin and Usermin packages" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: "0 8 * * *" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: awalsh128/cache-apt-pkgs-action@latest | ||
with: | ||
packages: git tar gzip openssl curl openssh-client rpm perl libdigest-sha-perl liblist-moreutils-perl libencode-detect-perl | ||
version: 1.0 | ||
- uses: szenius/[email protected] | ||
with: | ||
timezoneLinux: "Europe/Nicosia" | ||
- name: Fetch dependencies | ||
run: |- | ||
curl -O https://raw.githubusercontent.com/webmin/webmin/master/.github/build/vars.sh | ||
curl -O https://raw.githubusercontent.com/webmin/webmin/master/.github/build/init.sh | ||
curl -O https://raw.githubusercontent.com/webmin/webmin/master/.github/build/funcs.sh | ||
curl -O https://raw.githubusercontent.com/webmin/webmin/master/.github/build/deb.sh | ||
curl -O https://raw.githubusercontent.com/webmin/webmin/master/.github/build/rpm.sh | ||
- name: Build and upload packages | ||
env: | ||
WEBMIN_DEV__SSH_PRV_KEY: ${{ secrets.WEBMIN_DEV__SSH_PRV_KEY }} | ||
WEBMIN_DEV__SSH_PUB_KEY: ${{ secrets.WEBMIN_DEV__SSH_PUB_KEY }} | ||
WEBMIN_DEV__GPG_PH: ${{ secrets.WEBMIN_DEV__GPG_PH }} | ||
ENV_BUILD__CLOUD_UPLOAD_SSH_HOST: ${{ secrets.WEBMIN_DEV__IP_ADDR }} | ||
run: |- | ||
bash deb.sh --devel | ||
bash rpm.sh --devel | ||