This commit is contained in:
parent
09bb59c25b
commit
bbf7e0bfd3
96
.drone.yml
96
.drone.yml
|
@ -1,50 +1,50 @@
|
||||||
# kind: pipeline
|
kind: pipeline
|
||||||
# type: docker
|
type: docker
|
||||||
# name: default
|
name: default
|
||||||
|
|
||||||
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: Version check
|
- name: Version check
|
||||||
# image: plugins/hugo
|
image: plugins/hugo
|
||||||
# commands:
|
commands:
|
||||||
# - echo "Checking Hugo version."
|
- echo "Checking Hugo version."
|
||||||
# - hugo version
|
- hugo version
|
||||||
# - echo "Checking folder"
|
- echo "Checking folder"
|
||||||
# - ls
|
- ls
|
||||||
# - echo "Checking theme"
|
- echo "Checking theme"
|
||||||
# - cd themes
|
- cd themes
|
||||||
# - ls
|
- ls
|
||||||
# - echo "Checking ananke"
|
- echo "Checking ananke"
|
||||||
# - cd ananke
|
- cd ananke
|
||||||
# - ls
|
- ls
|
||||||
# - name: submodule fetch
|
- name: submodule fetch
|
||||||
# image: drone/git
|
image: drone/git
|
||||||
# commands:
|
commands:
|
||||||
# - git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
# - name: checking theme was fetched
|
- name: checking theme was fetched
|
||||||
# image: plugins/hugo
|
image: plugins/hugo
|
||||||
# commands:
|
commands:
|
||||||
# - cd themes
|
- cd themes
|
||||||
# - cd ananke
|
- cd ananke
|
||||||
# - ls
|
- ls
|
||||||
# - name: Build
|
- name: Build
|
||||||
# image: plugins/hugo
|
image: plugins/hugo
|
||||||
# settings:
|
settings:
|
||||||
# validate: true
|
validate: true
|
||||||
# extended: true
|
extended: true
|
||||||
# config: ./hugo.toml
|
config: ./hugo.toml
|
||||||
# - name: check Build
|
- name: check Build
|
||||||
# image: plugins/hugo
|
image: plugins/hugo
|
||||||
# commands:
|
commands:
|
||||||
# - ls
|
- ls
|
||||||
# - cd public
|
- cd public
|
||||||
# - ls
|
- ls
|
||||||
# - name: Deploy
|
- name: Deploy
|
||||||
# image: plugins/hugo
|
image: plugins/hugo
|
||||||
# environment:
|
environment:
|
||||||
# AWS_ACCESS_KEY_ID:
|
AWS_ACCESS_KEY_ID:
|
||||||
# from_secret: AWS_ACCESS_KEY_ID
|
from_secret: AWS_ACCESS_KEY_ID
|
||||||
# AWS_SECRET_ACCESS_KEY:
|
AWS_SECRET_ACCESS_KEY:
|
||||||
# from_secret: AWS_SECRET_ACCESS_KEY
|
from_secret: AWS_SECRET_ACCESS_KEY
|
||||||
# commands:
|
commands:
|
||||||
# - hugo deploy --config hugo.toml
|
- hugo deploy --config hugo.toml
|
|
@ -1,24 +1,24 @@
|
||||||
name: Gitea Actions
|
# name: Gitea Actions
|
||||||
run-name: ${{ gitea.actor }} is testing Gitea Actions 🚀
|
# run-name: ${{ gitea.actor }} is testing Gitea Actions 🚀
|
||||||
on: [push]
|
# on: [push]
|
||||||
|
|
||||||
jobs:
|
# jobs:
|
||||||
build and deploy:
|
# build and deploy:
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- run: |
|
# - run: |
|
||||||
pwd
|
# pwd
|
||||||
echo 'hello world'
|
# echo 'hello world'
|
||||||
ls -a
|
# ls -a
|
||||||
- name: Setup Hugo
|
# - name: Setup Hugo
|
||||||
uses: https://github.com/peaceiris/actions-hugo@v2
|
# uses: https://github.com/peaceiris/actions-hugo@v2
|
||||||
with:
|
# with:
|
||||||
hugo-version: 'latest'
|
# hugo-version: 'latest'
|
||||||
extended: true
|
# extended: true
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: hugo --minify --config hugo.toml
|
# run: hugo --minify --config hugo.toml
|
||||||
- name: Deploy
|
# - name: Deploy
|
||||||
env:
|
# env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
run: hugo deploy --config hugo.toml
|
# run: hugo deploy --config hugo.toml
|
Loading…
Reference in a new issue