commit fa2c7aa0d79c84c2596530d3c2b1de7c3421850f Author: Julia Johannesen Date: Mon Aug 17 18:39:10 2026 -0400 Initial commit diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml new file mode 100644 index 0000000..8dd0cb5 --- /dev/null +++ b/.forgejo/workflows/deploy.yaml @@ -0,0 +1,54 @@ +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: ubuntu-latest + 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 -s ../yanity.yaml ./vanity.yaml + go run main.go + - name: Install rclone + run: apt install rclone + - name: Configure rclone + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + SSH_PUBLIC_KEY: ${{ secrets.SSH_PUBLIC_KEY }} + run: | + mkdir ~/.ssh + cat < ~/.ssh/id_ed25519.pub <<< $SSH_PUBLIC_KEY + cat < ~/.ssh/id_ed25519 <<< $SSH_PRIVATE_KEY + mkdir ~/.config/rclone + cat < ~/.config/rclone/config.conf <<<-EOF + [bridget] + type = sftp + host = bridget + user = www-data + EOF + - name: Upload HTML + run: | + rclone sync --delete-during -vv ./go-vanity/public bridget:/var/www/vanity diff --git a/vanity.yaml b/vanity.yaml new file mode 100644 index 0000000..6ee8a49 --- /dev/null +++ b/vanity.yaml @@ -0,0 +1,5 @@ +host: go.bliss.town + +paths: + /clock: + repo: https://forge.bliss.town/blisstown/clock