easier example
This commit is contained in:
17
.github/workflows/action.yml
vendored
Normal file
17
.github/workflows/action.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# On every push this script is executed
|
||||
on: push
|
||||
name: Build and deploy GH Pages
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/development'
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: build_and_deploy
|
||||
uses: shalzz/zola-deploy-action@v0.14.1
|
||||
env:
|
||||
# Target branch
|
||||
PAGES_BRANCH: gh-pages
|
||||
# Provide personal access token
|
||||
TOKEN: ${{ secrets.TOKEN }}
|
23
.github/workflows/tf_update.yml
vendored
Normal file
23
.github/workflows/tf_update.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# name: Threefold_io
|
||||
# on:
|
||||
# push:
|
||||
# branch: [ development ]
|
||||
|
||||
# jobs:
|
||||
# job_one:
|
||||
# name: Deploy
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: pushing latest change on www2.threefold.io
|
||||
# uses: appleboy/ssh-action@master
|
||||
# with:
|
||||
# host: www2.threefold.io
|
||||
# username: root
|
||||
# key: ${{ secrets.TF_SECRET }}
|
||||
# port: 22
|
||||
# script: |
|
||||
# cd /opt/www_threefold_io/
|
||||
# git log -1
|
||||
# git restore static/css/index.css
|
||||
# git pull
|
||||
# npm run build
|
Reference in New Issue
Block a user