Skip to content

test18

test18 #15

Workflow file for this run

name: Timed Update
on:
push:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
TimedUpdate:
runs-on: [ubuntu-latest]
steps:
- name: Checkout Main Repo
uses: actions/checkout@v4
with:
repository: 9fans/plan9port
path: /home/runner/plan9
- name: Checkout this Repo
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}
path: /home/runner/web
- name: Install Dependecy
run: |
sudo apt-get update
sudo apt-get install build-essential xorg-dev tree
sudo apt-get upgrade -y gcc make
- name: Compile Plan9port
run: |
cd /home/runner
cp -r plan9 /user/local
cd /user/local/plan9
sudo ./INSTALL
- name: Update Web
run: |
cd /home/runner/web
cp -r /home/runner/plan9 /home/runner/web/user/local/
cp -r /user/local/plan9/dist /home/runner/web/plan9port
cp -r /user/local/plan9/man /home/runner/web/plan9port
cp -r /user/local/plan9/unix /home/runner/web/unix
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: web
path: /home/runner/web
retention-days: 1
compression-level: 0
- name: Commit and Push
run: |
git config --global user.email "[email protected]"
git config --global user.name "Eason Lu (Automated, Github Actions)"
git add .
git commit -m "Automated Update"
git push