network-stories/.github/workflows/publish.yml

24 lines
855 B
YAML
Raw Normal View History

2022-04-13 15:41:00 +00:00
name: Build and Deploy
2022-04-13 16:03:26 +00:00
on:
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
2022-04-13 15:41:00 +00:00
jobs:
2022-04-13 16:05:55 +00:00
build:
2022-04-13 15:41:00 +00:00
runs-on: ubuntu-latest
steps:
2022-04-13 16:03:26 +00:00
- uses: actions/checkout@v3
2022-04-13 16:05:10 +00:00
- name: Logseq Publish 🛎️ # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
2022-04-13 16:03:26 +00:00
uses: pengx17/logseq-publish@0.1.0
2022-04-13 16:05:10 +00:00
- name: add a nojekyll file
2022-04-13 16:03:26 +00:00
run: touch $GITHUB_WORKSPACE/www/.nojekyll
2022-04-13 15:41:00 +00:00
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
branch: gh-pages # The branch the action should deploy to.
2022-04-13 16:03:26 +00:00
folder: www # The folder the action should deploy.
clean: true