palette-template/.gitea/workflows/test.yml

26 lines
705 B
YAML
Raw Normal View History

2024-01-18 14:02:29 +00:00
name: Gitea Actions
run-name: ${{ gitea.actor }} is testing Gitea Actions 🚀
on: [push]
jobs:
build and deploy:
steps:
2024-01-18 14:20:26 +00:00
2024-01-18 14:10:23 +00:00
- name: check folder
2024-01-18 14:20:26 +00:00
uses: actions/checkout@v3
2024-01-18 14:16:02 +00:00
run: |
pwd
echo 'hello world'
ls -a
2024-01-18 14:02:29 +00:00
- name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo@v2
with:
2024-01-18 14:20:26 +00:00
hugo-version: 'latest'
2024-01-18 14:02:29 +00:00
extended: true
- name: Build
2024-01-18 14:06:04 +00:00
run: hugo --minify --config hugo.toml
2024-01-18 14:02:29 +00:00
- 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