-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
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,34 @@ | ||
name: "virtualmin.dev: AWStats" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: awalsh128/cache-apt-pkgs-action@latest | ||
with: | ||
packages: git tar gzip openssl curl openssh-client rpm perl libjson-pp-perl libdigest-sha-perl liblist-moreutils-perl libencode-detect-perl zstd | ||
version: 1.0 | ||
- uses: szenius/set-timezone@v1.2 | ||
with: | ||
timezoneLinux: "Europe/Nicosia" | ||
- name: Fetch dependencies | ||
run: |- | ||
curl -O https://raw.githubusercontent.com/webmin/webmin-ci-cd/main/build/bootstrap.bash | ||
- name: Build and upload modules | ||
env: | ||
CLOUD__GPG_PH: ${{ secrets.DEV_GPG_PH }} | ||
CLOUD__IP_ADDR: ${{ secrets.DEV_IP_ADDR }} | ||
CLOUD__UPLOAD_SSH_USER: ${{ secrets.DEV_UPLOAD_SSH_USER }} | ||
CLOUD__UPLOAD_SSH_DIR: ${{ secrets.DEV_UPLOAD_SSH_DIR }} | ||
CLOUD__SSH_PRV_KEY: ${{ secrets.DEV_SSH_PRV_KEY }} | ||
CLOUD__GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: |- | ||
bash bootstrap.bash | ||
bash build-deb-module.bash usermin --testing | ||
bash build-rpm-module.bash usermin --testing |