Skip to content

Automated build with https://github.com/suzukua/EPG-Server/commit/main #677

Automated build with https://github.com/suzukua/EPG-Server/commit/main

Automated build with https://github.com/suzukua/EPG-Server/commit/main #677

Workflow file for this run

# Sample workflow for building and deploying a Jekyll site to Gitlab Pages
name: Deploy Jekyll with Gitlab Pages dependencies preinstalled
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch all
ref: 'main'
- name: merge_main
run: |
pwd
ls -la
git branch --all
git checkout origin/hidden -- t.xml t.xml.gz
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: replace path
run: |
REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2)
echo "Repository Name: $REPO_NAME"
pwd
ls -la
sudo sed -i 's/\/href=\"\/$REPO_NAME/href=\"/g' ./_site/index.html
# cat ./_site/index.html
- name: Deploy to Gitlab Pages
run: |
rm ./git -rf
ls -la
git clone https://${{ secrets.GITLAB_USERNAME }}:${{ secrets.GITLAB_TOKEN }}@gitlab.com/suzukua/epg.git
ls -la
cp -r ./_site/* ./epg/
cd epg
ls -la
git config user.name suzukua_bot
git config user.email suzukua_bot
git status
git add .
git commit -am "Automated build"
git push https://${{ secrets.GITLAB_USERNAME }}:${{ secrets.GITLAB_TOKEN }}@gitlab.com/suzukua/epg.git HEAD:main