diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml deleted file mode 100644 index e8a92fe..0000000 --- a/.gitea/workflows/deploy.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Deploy website -on: - push: - # branches: - # - master - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Call the Docker Compose stack to build the page - run: docker-compose exec jekyll build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4f40f4f..5fdcfe4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,32 +4,8 @@ on: push: jobs: - - build_dev: - name: Development Build - if: github.ref != 'refs/heads/master' - runs-on: ubuntu-latest - environment: production - permissions: - contents: read - deployments: write - - steps: - - name: Checkout branch - uses: actions/checkout@v4 - - - name: Write the commit hash into the config - run: echo "commit = \"$(git rev-parse HEAD | cut -c1-7)\"" >> config.toml - - - name: Build only - uses: shalzz/zola-deploy-action@v0.19.1 - env: - BUILD_ONLY: true - BUILD_FLAGS: --drafts - - build_prod: - name: Production Build - if: github.ref == 'refs/heads/master' + deploy: + name: Deploy to Production runs-on: ubuntu-latest environment: production permissions: @@ -40,20 +16,15 @@ jobs: - name: Checkout master uses: actions/checkout@v4 - - name: Write the commit hash into the config - run: echo "commit = \"$(git rev-parse HEAD | cut -c1-7)\"" >> config.toml + - name: Build website + run: docker compose exec jekyll build - - name: Build only - uses: shalzz/zola-deploy-action@v0.19.1 - env: - BUILD_ONLY: true - - - name: Publish to Cloudflare Pages - uses: cloudflare/pages-action@v1 - with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - projectName: ewpratten - directory: public - gitHubToken: ${{ secrets.GITHUB_TOKEN }} - wranglerVersion: '2' + # - name: Publish to Cloudflare Pages + # uses: cloudflare/pages-action@v1 + # with: + # apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + # accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + # projectName: ewpratten + # directory: public + # gitHubToken: ${{ secrets.GITHUB_TOKEN }} + # wranglerVersion: '2'