From adeb2efd1e2f5d1a9edd9c41acceb8b0afe5e586 Mon Sep 17 00:00:00 2001 From: Derek Slenk Date: Thu, 17 Jul 2025 14:31:17 -0400 Subject: [PATCH] Remove GitHub Actions workflows in favor of Forgejo Actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub Actions workflows are no longer needed since we're using Forgejo Actions for CI/CD on the self-hosted runner. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/build.yml | 46 ------------------------------- .github/workflows/deploy.yml | 53 ------------------------------------ 2 files changed, 99 deletions(-) delete mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index eafafcd..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Build Site - -on: - push: - branches-ignore: - - main - pull_request: - branches: - - main - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - submodules: recursive - fetch-depth: 0 - - - name: Cache Hugo modules - uses: actions/cache@v3 - with: - path: .hugo - key: ${{ runner.os }}-hugo-${{ steps.hugo-version.outputs.version }}-${{ hashFiles('**/go.mod') }} - restore-keys: | - ${{ runner.os }}-hugo-${{ steps.hugo-version.outputs.version }} - ${{ runner.os }}-hugo- - - - name: Setup Hugo - uses: peaceiris/actions-hugo@v3 - id: hugo-version - with: - hugo-version: 'latest' - extended: true - - - name: Build Hugo site - run: hugo --minify - - - name: Upload build artifacts - uses: actions/upload-artifact@v4 - with: - name: hugo-build - path: public/ - retention-days: 7 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index f04cb0c..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Deploy to S3 - -on: - push: - branches: - - main - -permissions: - id-token: write - contents: read - -jobs: - deploy: - runs-on: ubuntu-latest - environment: prod - - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - submodules: recursive - fetch-depth: 0 - - - name: Setup Hugo - uses: peaceiris/actions-hugo@v3 - with: - hugo-version: 'latest' - extended: true - - - name: Build Hugo site - run: hugo --minify - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: ${{ secrets.CC_OIDC_ROLE }} - aws-region: us-east-1 - - - name: Deploy to S3 - run: | - aws s3 sync public/ s3://angrymichigander.com --delete --no-cli-pager - - # - name: Invalidate CloudFront cache - # run: | - # # Get the CloudFront distribution ID for angrymichigander.com - # DISTRIBUTION_ID=$(aws cloudfront list-distributions --no-cli-pager --query "DistributionList.Items[?contains(Aliases.Items, 'angrymichigander.com')].Id" --output text) - - # if [ ! -z "$DISTRIBUTION_ID" ]; then - # echo "Creating CloudFront invalidation for distribution: $DISTRIBUTION_ID" - # aws cloudfront create-invalidation --no-cli-pager --distribution-id $DISTRIBUTION_ID --paths "/*" - # else - # echo "No CloudFront distribution found for angrymichigander.com" - # fi