actions new repo

This commit is contained in:
Peter Nashaat 2023-08-20 07:18:12 +00:00
parent d246c52177
commit 1a6f0ea948
3 changed files with 4 additions and 23 deletions

View File

@ -1,19 +0,0 @@
name: Zola on GitHub Pages
on:
push:
branches:
- development
jobs:
build:
name: Publish site
runs-on: ubuntu-latest
steps:
- name: Checkout development
uses: actions/checkout@v3.0.0
- name: Build and deploy
uses: shalzz/zola-deploy-action@v0.16.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -18,7 +18,7 @@ jobs:
script: | script: |
cd websites/www2/www_ourworld_tf/ cd websites/www2/www_ourworld_tf/
git log -1 git log -1
git restore . git fetch
git pull git reset --hard origin/development
sed -i "s/https:\/\/www.ourworld.tf/https:\/\/www2.ourworld.tf/g" config.toml sed -i "s/https:\/\/www.ourworld.tf/https:\/\/www2.ourworld.tf/g" config.toml
./build.sh ./build.sh

View File

@ -18,7 +18,7 @@ jobs:
script: | script: |
cd websites/www_ourworld_tf/ cd websites/www_ourworld_tf/
git log -1 git log -1
git restore . git fetch
git pull git reset --hard origin/development
sed -i "s/https:\/\/www2.ourworld.tf/https:\/\/ourworld.tf/g" config.toml sed -i "s/https:\/\/www2.ourworld.tf/https:\/\/ourworld.tf/g" config.toml
./build.sh ./build.sh