Skip to content

Initial Commit

Initial Commit #33

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@v3
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Download Dependecies
run: |
composer install
- 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@v2
with:
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2