mirror of https://github.com/thangisme/notes.git
Add deploy to Neocities step to Github action
This commit is contained in:
parent
3edfbe9cb1
commit
2062b86097
|
@ -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
|
||||||
|
|
|
@ -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