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