work.suroh.tk/.gitea/workflows/deploy.yml

25 lines
519 B
YAML
Raw Normal View History

2024-02-02 14:16:07 +00:00
name: work.suroh.tk deploy
run-name: ${{ github.action_repository }} is being built and deployed
on:
push:
branches:
- 'main'
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Clone code to runner
uses: actions/checkout@v4
- name: Move to directory
run: cd ${{ github.workspace }}
2024-02-02 14:23:12 +00:00
- name: Install dependencies
2024-02-02 14:27:06 +00:00
run: npm i
2024-02-02 14:16:07 +00:00
2024-02-02 14:23:12 +00:00
- name: Build 11ty site
2024-02-02 14:28:08 +00:00
run: npm run build && cd _site
2024-02-02 14:23:12 +00:00
- name: Check build directory
run: pwd