rizaldy.today/.github/workflows/eleventy.yaml

31 lines
872 B
YAML
Raw Normal View History

2023-02-20 20:03:59 +07:00
name: eleventy
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: get last sha
run: echo "LAST_COMMIT=`git rev-parse --short HEAD`" >> $GITHUB_ENV
- name: Build
uses: TartanLlama/actions-eleventy@master
2023-02-20 20:06:19 +07:00
with:
install_dependencies: true
2023-02-20 20:14:04 +07:00
- name: Deploy
uses: ayeressian/bunnycdn-storage-deploy@v1.1.1
with:
storageEndpoint: "sg.storage.bunnycdn.com"
storageZoneName: "${{ secrets.STORAGE_NAME }}"
accessKey: "${{ secrets.STORAGE_KEY }}"
source: "dist"
remove: "true"
purge: "false"
2023-07-09 03:24:05 +07:00
- name: Deploy (GH pages)
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: rizaldy.today