Add delay before downloading CAS login page #6
Workflow file for this run
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
name: Build & Deploy | |
on: | |
push: | |
branches: | |
- test-deploy | |
concurrency: | |
group: build-and-deploy | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/[email protected] | |
with: | |
java-version: 11 | |
distribution: 'corretto' | |
- name: Build | |
run: ./gradlew clean build | |
- name: Prepare artifact | |
run: | | |
mkdir -p mirror-root | |
sudo mkdir /etc/cas | |
sudo chown $USER:$USER /etc/cas | |
./gradlew createKeystore | |
java -jar build/libs/cas.war & | |
PID=$! | |
sleep 60 | |
wget --no-check-certificate --mirror --convert-links --adjust-extension --page-requisites --no-parent -P mirror-root https://localhost:8443/cas/login | |
kill $PID | |
- name: Upload as artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: mirror-root/localhost:8443/cas | |