Skip to content

Workflow file for this run

name: Deploy static content to Pages
on:
push:
branches: ["master"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Download Dependecies
run: |
composer install
- name: Start Localhost & Download Site
run: |
php -S localhost:8000
wget -mpEk "http://localhost:8000"
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/ads.txt
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/sw.js
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/yandex_b229053f47e9b4b5.html
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/qkdq6zub0hw6o6acpoiylfrrf5e7g1.html
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/pinterest-326fc.html
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/google022983bf0cf659ae.html
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/f20756182df645f9b8cf6254654dd5da.html
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/favicon_192.png
wget https://raw.githubusercontent.com/mrepol742/mrepol742.github.io/master/favicon_512.png
- name: Generate RSS
run: |
wget https://github.com/mrepol742/RSS-Generator/releases/download/v1.1.3/RSS-Generator-1.0-jar-with-dependencies.jar
java -cp RSS-Generator-1.0-jar-with-dependencies.jar com.mrepol742.rssgenerator.App --domain https://mrepol742.github.io/ --publisher "Melvin Jones Gallano Repol"
rm -rf RSS-Generator-1.0-jar-with-dependencies.jar
- name: Generate Sitemap
run: |
wget https://github.com/mrepol742/Sitemap-Generator/releases/download/v1.1.2/Sitemap-Generator-1.0-jar-with-dependencies.jar
java -cp Sitemap-Generator-1.0-jar-with-dependencies.jar com.mrepol742.sitemapgenerator.App --domain https://mrepol742.github.io/ --publisher "Melvin Jones Gallano Repol"
rm -rf Sitemap-Generator-1.0-jar-with-dependencies.jar
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'localhost:8000'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4