name: Deploy on: push: branches: ["main"] workflow_dispatch: permissions: contents: read pages: write id-token: write concurrency: group: "pages" cancel-in-progress: false jobs: deploy: runs-on: docker steps: - name: Checkout uses: actions/checkout@v6 - name: Set up Go uses: actions/setup-go@v6 with: go-version: "stable" - name: Clone open-feature/go-vanityurls run: git clone https://github.com/open-feature/go-vanityurls - name: Generate HTML run: | cd go-vanityurls ln -sf ../vanity.yaml ./vanity.yaml go run main.go - name: Upload HTML env: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} run: | apt update && apt install -y rclone printf '%s\n' "$SSH_PRIVATE_KEY" > ~/.ssh/deploy_key rclone sync \ --delete-during \ -vv \ --sftp-host bridget.arimelody.space \ --sftp-port 40195 \ --sftp-user vanity \ --sftp-key-file ~/.ssh/deploy_key \ --sftp-shell-type none \ ./go-vanityurls/public :sftp:/var/www/vanity