migrate to forgejo runners

This commit is contained in:
hack13 2023-09-16 11:05:20 -04:00
parent e5b4b8f929
commit ad20d08cb2
No known key found for this signature in database
GPG key ID: E24A3BE06FE108C9

View file

@ -0,0 +1,26 @@
on: push
name: Build and deploy
jobs:
web-deploy:
runs-on: docker
container:
image: catthehacker/ubuntu:act-latest
options: --privileged
steps:
- name: Get latest code
uses: actions/checkout@v2
- name: Build hugo site
uses: jakejarvis/hugo-build-action@master
with:
args: --minify
- name: Clean permissions
uses: main-quest/actions.clean-permissions@v1.0.4
- name: Deploy to Uplink
uses: https://github.com/shallwefootball/upload-s3-action@master
with:
aws_key_id: ${{ secrets.STORJ_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.STORJ_SECRET_ACCESS_KEY }}
endpoint: ${{ secrets.STORJ_ENDPOINT }}
aws_bucket: ${{ secrets.STORJ_BUCKET }}
source_dir: "dist"
destination_dir: "hack13-blog"