From 1242e804cfc8fe70fc3e72574d2721d56a673609 Mon Sep 17 00:00:00 2001 From: Naman Sood Date: Thu, 21 Nov 2024 17:43:04 -0500 Subject: [PATCH] move to forgejo actions Signed-off-by: Naman Sood --- {.github => .forgejo}/workflows/main.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) rename {.github => .forgejo}/workflows/main.yml (82%) diff --git a/.github/workflows/main.yml b/.forgejo/workflows/main.yml similarity index 82% rename from .github/workflows/main.yml rename to .forgejo/workflows/main.yml index 3b4beda..f72fe98 100644 --- a/.github/workflows/main.yml +++ b/.forgejo/workflows/main.yml @@ -1,19 +1,23 @@ -on: [push] +on: + push: + branches: + - 'main' jobs: deploy: - runs-on: ubuntu-latest + runs-on: docker + container: + image: ubuntu:latest name: Deploy blog to deuterium - if: github.ref == 'refs/heads/main' env: MACHINE: deuterium steps: - name: Setup Go 1.19 id: go - uses: actions/setup-go@v2 + uses: https://code.forgejo.org/actions/setup-go@v5 - name: Setup Tailscale id: tailscale - uses: tailscale/github-action@v2 + uses: https://github.com/tailscale/github-action@v2 with: oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} oauth-secret: ${{ secrets.TS_OAUTH_CLIENT_SECRET }} @@ -32,7 +36,7 @@ jobs: - name: Fetch code id: fetch - uses: actions/checkout@v1 + uses: https://code.forgejo.org/actions/checkout@v1 - name: Compile blog binary id: compile