Browse Source

remove deployment

FAQ
L3D 7 months ago
parent
commit
18231c7b80
Signed by untrusted user: L3D GPG Key ID: CD08445BFF4313D1
  1. 71
      .github/workflows/.lektor-deploy.yml

71
.github/workflows/.lektor-deploy.yml

@ -1,71 +0,0 @@
name: Build and Deploy vebit website
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '42 0 * * 0'
push:
branches:
- master
# Environment variables available to all jobs and steps in this workflow
env:
LEKTOR_DEPLOY_KEY: ${{ secrets.LEKTOR_DEPLOY_KEY }}
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Cache lfs data
uses: actions/cache@v1
with:
path: .git
key: .git/lfs
- name: install git-lfs && lektor
run: |
sudo apt-get install git-lfs
make install
- name: Cache lektor .cache
uses: actions/cache@v1
with:
path: ~/.cache/lektor
key: lektorcache
- name: Create LFS file list
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS cache
uses: actions/cache@v2
id: lfs-cache
with:
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1
- name: Git LFS Pull
run: git lfs pull
- name: build with lektor
run: |
make build
- name: deploy new site
run: |
echo 'vebit.xyz ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAMuwoAVdOAMaY7/sPJy6mUR1BphAHUudhxMUwG8PJ5p' | sudo tee /etc/ssh/ssh_known_hosts
lektor deploy --key $LEKTOR_DEPLOY_KEY vebit
Loading…
Cancel
Save