From c52619e2c12afe2971f189eedcbe131e5b3f27b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20M=C3=A4hr?= Date: Mon, 22 Jan 2024 14:59:53 +0100 Subject: [PATCH] ci: revert sveltekitci.yml (#61) --- .github/workflows/sveltekitci.yml | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/.github/workflows/sveltekitci.yml b/.github/workflows/sveltekitci.yml index 1581ea78..bcfa6763 100644 --- a/.github/workflows/sveltekitci.yml +++ b/.github/workflows/sveltekitci.yml @@ -12,8 +12,11 @@ on: workflow_dispatch: null repository_dispatch: jobs: - build: + sveltekitci: runs-on: ubuntu-latest + permissions: + pages: write + id-token: write steps: - name: Checkout uses: actions/checkout@v4 @@ -60,29 +63,8 @@ jobs: run: pnpm run postbuild - name: Test run: pnpm run test - - name: Upload build artifact - if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && github.repository == 'Stadt-Geschichte-Basel/stadtgeschichtebasel.ch' - uses: actions/upload-artifact@v4 - with: - name: build - path: build - retention-days: 1 - deploy: - if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && github.repository == 'Stadt-Geschichte-Basel/stadtgeschichtebasel.ch' - needs: build - runs-on: ubuntu-latest - permissions: - pages: write - id-token: write - # environment: - # name: github-pages - # url: '${{ steps.deployment.outputs.page_url }}' - steps: - - name: Download the build artifact - uses: actions/download-artifact@v4 - with: - name: build - name: Publish to Cloudflare Pages + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && github.repository == 'Stadt-Geschichte-Basel/stadtgeschichtebasel.ch' uses: cloudflare/pages-action@v1 with: apiToken: '${{ secrets.CLOUDFLARE_API_TOKEN }}' @@ -90,7 +72,7 @@ jobs: projectName: stadtgeschichtebasel-ch directory: build # Optional: Enable this if you want to have GitHub Deployments triggered - # gitHubToken: ${{ secrets.GITHUB_TOKEN }} + # gitHubToken: '${{ secrets.GITHUB_TOKEN }}' # Optional: Switch what branch you are publishing to. # By default this will be the branch which triggered this workflow branch: main