1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-18 02:06:12 -05:00

Add deploy to Neocities step to Github action

This commit is contained in:
Quang Thang 2021-01-27 17:21:45 +07:00
parent 3edfbe9cb1
commit 2062b86097
2 changed files with 13 additions and 0 deletions

View File

@ -19,6 +19,13 @@ jobs:
docker run --rm \ docker run --rm \
--volume="${{ github.workspace }}:/srv/jekyll" \ --volume="${{ github.workspace }}:/srv/jekyll" \
jekyll/builder:latest /bin/bash -c "gem install bundler && chmod -R 777 /srv/jekyll && bundle install && bundle exec jekyll build && bundle exec rake search:init" jekyll/builder:latest /bin/bash -c "gem install bundler && chmod -R 777 /srv/jekyll && bundle install && bundle exec jekyll build && bundle exec rake search:init"
- name: Deploy to Neocities
uses: bcomnes/deploy-to-neocities@master
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: true
dist_dir: _site
jekyll-3-8-5: jekyll-3-8-5:
name: Build Jekyll site (v3.8.5) name: Build Jekyll site (v3.8.5)
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -16,6 +16,12 @@ jobs:
docker run --rm \ docker run --rm \
--volume="${{ github.workspace }}:/srv/jekyll" \ --volume="${{ github.workspace }}:/srv/jekyll" \
jekyll/builder:latest /bin/bash -c "gem install bundler && chmod -R 777 /srv/jekyll && bundle install && bundle exec jekyll build && bundle exec rake search:init" jekyll/builder:latest /bin/bash -c "gem install bundler && chmod -R 777 /srv/jekyll && bundle install && bundle exec jekyll build && bundle exec rake search:init"
- name: Deploy to Neocities
uses: bcomnes/deploy-to-neocities@master
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: true
dist_dir: _site
jekyll-3-8-5: jekyll-3-8-5:
name: Build Jekyll site (v3.8.5) name: Build Jekyll site (v3.8.5)