diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..e2245ef --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,18 @@ + name: Deploy + + on: + push: + branches: [main] + + jobs: + deploy: + runs-on: native + steps: + - uses: actions/checkout@v4 + + - name: Build and deploy + run: | + podman build -t hugo-home:latest . + podman stop hugo-home 2>/dev/null || true + podman rm hugo-home 2>/dev/null || true + podman run -d --name hugo-home --restart=always -p 127.0.0.1:8080:8080 hugo-home:latest