diff options
author | Nils K <git@nkn-it.de> | 2021-03-15 19:35:54 +0100 |
---|---|---|
committer | Nils K <git@nkn-it.de> | 2021-03-15 19:35:54 +0100 |
commit | 8cbb7c25c392f39529ed68604d27b10fe54d6103 (patch) | |
tree | 6d2b4d930a19c45046088095a9414a0b6067b0f6 /.github/workflows/main.yml | |
parent | a30ebe9901d497bc9bd56e1354cb707c25736c7d (diff) |
demo images
Diffstat (limited to '.github/workflows/main.yml')
-rw-r--r-- | .github/workflows/main.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8be1a92 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,38 @@ +name: "Update gallery.sh demo page" +on: + workflow_dispatch: + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Dependencies 🔧 + run: sudo apt-get install imagemagick jhead + - name: Checkout 🛎️ + uses: actions/checkout@v2 + - name: Configuration 🖊️ + run: | + mkdir -p "build/" + mkdir -p "$HOME/status/" + echo 'MY_STATUS_HTML="build/index.html"' > config + echo 'MY_STATUS_JSON="build/status.json"' >> config + echo 'MY_MAINTENANCE_TEXT_FILE="status_maintenance_text.txt"' >> config + echo 'MY_HOSTNAME_FILE="status_hostname_list.txt"' >> config + echo 'This is a demo page of <a href="https://github.com/Cyclenerd/static_status">static_status</a>.' > status_maintenance_text.txt + echo 'This status page is generated with GitHub Action.' >> status_maintenance_text.txt + echo 'curl;https://www.heise.de/ping|<a href="https://www.heise.de/">heise online</a>' > status_hostname_list.txt + echo 'curl;ftp://ftp.debian.org/debian/README' >> status_hostname_list.txt + echo 'nc;8.8.8.8|DNS @ Google;53' >> status_hostname_list.txt + echo "config" + cat config + echo "status_maintenance_text.txt" + cat status_maintenance_text.txt + echo "status_hostname_list.txt" + cat status_hostname_list.txt + - name: Status 🚦 + run: bash status.sh loud + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@4.0.0 + with: + branch: gh-pages # The branch the action should deploy to. + folder: build # The folder the action should deploy.
\ No newline at end of file |