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:
parent
3edfbe9cb1
commit
2062b86097
7
.github/workflows/ci-master.yml
vendored
7
.github/workflows/ci-master.yml
vendored
@ -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
|
||||||
|
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user